diff options
-rw-r--r-- | .github/workflows/auto-comments.yml | 51 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | g4f/__init__.py | 2 | ||||
-rw-r--r-- | requirements.txt | 2 | ||||
-rw-r--r-- | setup.py | 2 |
5 files changed, 57 insertions, 6 deletions
diff --git a/.github/workflows/auto-comments.yml b/.github/workflows/auto-comments.yml new file mode 100644 index 00000000..98335275 --- /dev/null +++ b/.github/workflows/auto-comments.yml @@ -0,0 +1,51 @@ +name: Auto Comment +on: + issues: + types: + - opened + - closed + - assigned + pull_request: + types: + - opened + - closed + +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Auto Comment on Issues Opened + uses: wow-actions/auto-comment@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + issuesOpened: | + π @{{ author }} + Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. + Please make sure you have given us as much context as possible. + - name: Auto Comment on Issues Closed + uses: wow-actions/auto-comment@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + issuesClosed: | + π @{{ author }} This issue is closed. + - name: Auto Comment on Pull Request Merged + uses: wow-actions/auto-comment@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + pullRequestMerged: | + π @{{ author }} π Congrats on your merged pull request! Thanks for the valuable contribution! ππ Congrats on your merged pull request! Thanks for the valuable contribution! π + - name: Auto Comment on Pull Request Opened + uses: wow-actions/auto-comment@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + pullRequestOpened: | + Helloπ @{{ author }}, I hope you are doing well! + <br> + Thank you for raising your pull request and contributing to our Community π + Please make sure you have followed our contributing guidelines. We will review it as soon as possible. + - name: Auto Comment on Issues Assigned + uses: wow-actions/auto-comment@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + issuesAssigned: | + Hello @{{ author }}, thank you for raising an issue. π I have assigned the issue to you. You can now start working on it. If you encounter any problems, please feel free to connect with us. π @@ -7,7 +7,7 @@ > By using this repository or any code related to it, you agree to the [legal notice](./LEGAL_NOTICE.md). The author is not responsible for any copies, forks, re-uploads made by other users, or anything else related to GPT4Free. This is the author's only account and repository. To prevent impersonation or irresponsible actions, please comply with the GNU GPL license this Repository uses. > **Note** -> Latest pypi version: [`0.1.7.8`](https://pypi.org/project/g4f/0.1.7.8) +> Latest pypi version: [`0.1.7.9`](https://pypi.org/project/g4f/0.1.7.9) ```sh pip install -U g4f ``` @@ -253,7 +253,7 @@ response = g4f.ChatCompletion.create( ##### Async Support: -To enhance speed and overall performance, execute providers asyncronously. +To enhance speed and overall performance, execute providers asynchronously. The total execution time will be determined by the duration of the slowest provider's execution. ```py @@ -607,7 +607,7 @@ for message in response: ## Contributors A list of the contributors is available [here](https://github.com/xtekky/gpt4free/graphs/contributors) -The [`Vercel.py`](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/Vercel.py) file contains code from [vercel-llm-api](https://github.com/ading2210/vercel-llm-api) by [@ading2210](https://github.com/ading2210), which is licenced under the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.txt) +The [`Vercel.py`](https://github.com/xtekky/gpt4free/blob/main/g4f/Provider/Vercel.py) file contains code from [vercel-llm-api](https://github.com/ading2210/vercel-llm-api) by [@ading2210](https://github.com/ading2210), which is licensed under the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.txt) Top 1 Contributor: [@hlohaus](https://github.com/hlohaus) ## Copyright diff --git a/g4f/__init__.py b/g4f/__init__.py index e6c27d50..a2eec9e2 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -5,7 +5,7 @@ from .Provider import BaseProvider, RetryProvider from .typing import Messages, CreateResult, Union, List from . import debug -version = '0.1.7.8' +version = '0.1.7.9' version_check = True def check_pypi_version() -> None: diff --git a/requirements.txt b/requirements.txt index ed0d6e4b..3ef9b32e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ certifi browser_cookie3 websockets js2py -flask +flask[async] flask-cors typing-extensions PyExecJS @@ -11,7 +11,7 @@ with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh: with open("requirements.txt") as f: required = f.read().splitlines() -VERSION = "0.1.7.8" +VERSION = "0.1.7.9" DESCRIPTION = ( "The official gpt4free repository | various collection of powerful language models" ) |