XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

~ | g4f v-0.1.8.9

06369663
abc <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

4 个文件 +13 -9
Modified README.md +1 -1
@@ -11,7 +11,7 @@
11 11 > 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.
12 12
13 13 > [!Note]
14 > Latest pypi version: [`0.1.8.7`](https://pypi.org/project/g4f/0.1.8.7)
14 > Latest pypi version: [`0.1.8.9`](https://pypi.org/project/g4f/0.1.8.9)
15 15 ```sh
16 16 pip install -U g4f
17 17 ```
Modified g4f/Provider/base_provider.py +10 -6
@@ -1,14 +1,18 @@
1 1 from __future__ import annotations
2 2
3 from asyncio import AbstractEventLoop
3 import sys
4 from asyncio import AbstractEventLoop
4 5 from concurrent.futures import ThreadPoolExecutor
5 from abc import ABC, abstractmethod
6 from inspect import signature, Parameter
7 from types import NoneType
6 from abc import ABC, abstractmethod
7 from inspect import signature, Parameter
8 from .helper import get_event_loop, get_cookies, format_prompt
9 from ..typing import CreateResult, AsyncResult, Messages
8 10
9 from .helper import get_event_loop, get_cookies, format_prompt
10 from ..typing import CreateResult, AsyncResult, Messages
11 11
12 if sys.version_info < (3, 10):
13 NoneType = type(None)
14 else:
15 from types import NoneType
12 16
13 17 class BaseProvider(ABC):
14 18 url: str
Modified g4f/__init__.py +1 -1
@@ -5,7 +5,7 @@ from .Provider import BaseProvider, AsyncGeneratorProvider, RetryProvider
5 5 from .typing import Messages, CreateResult, AsyncResult, Union, List
6 6 from . import debug
7 7
8 version = '0.1.8.7'
8 version = '0.1.8.9'
9 9 version_check = True
10 10
11 11 def check_pypi_version() -> None:
Modified setup.py +1 -1
@@ -11,7 +11,7 @@ with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh:
11 11 with open('requirements.txt') as f:
12 12 required = f.read().splitlines()
13 13
14 VERSION = '0.1.8.8'
14 VERSION = '0.1.8.9'
15 15 DESCRIPTION = (
16 16 'The official gpt4free repository | various collection of powerful language models'
17 17 )