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

XFEstudio/gpt4free

~ | g4f v-0.1.3.9

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

代码差异

4 个文件 +5 -5
Modified README.md +1 -1
@@ -4,7 +4,7 @@ By using this repository or any code related to it, you agree to the [legal noti
4 4
5 5 ### New
6 6 - official website: *https://g4f.ai*
7 - latest pypi version: ([0.1.3.8](https://pypi.org/project/g4f/0.1.3.8)):
7 - latest pypi version: ([0.1.3.9](https://pypi.org/project/g4f/0.1.3.9)):
8 8
9 9 ```sh
10 10 pip install -U g4f
Modified g4f/__init__.py +1 -1
@@ -4,7 +4,7 @@ from .Provider import BaseProvider, AsyncProvider
4 4 from .typing import Any, CreateResult, Union
5 5
6 6 logging = False
7 version = '0.1.3.8'
7 version = '0.1.3.9'
8 8
9 9 def get_model_and_provider(model: Union[models.Model, str], provider: type[BaseProvider], stream: bool):
10 10 if isinstance(model, str):
Modified g4f/requests.py +2 -2
@@ -7,11 +7,11 @@ from aiohttp import StreamReader
7 7 from aiohttp.base_protocol import BaseProtocol
8 8
9 9 from curl_cffi.requests import AsyncSession as BaseSession
10 from curl_cffi.requests import Request, Response
10 from curl_cffi.requests import Response
11 11
12 12
13 13 class StreamResponse:
14 def __init__(self, inner: Response, content: StreamReader, request: Request):
14 def __init__(self, inner: Response, content: StreamReader, request):
15 15 self.inner = inner
16 16 self.content = content
17 17 self.request = request
Modified setup.py +1 -1
@@ -14,7 +14,7 @@ with open("requirements.txt") as f:
14 14 with open("interference/requirements.txt") as f:
15 15 api_required = f.read().splitlines()
16 16
17 VERSION = '0.1.3.8'
17 VERSION = '0.1.3.9'
18 18 DESCRIPTION = (
19 19 "The official gpt4free repository | various collection of powerful language models"
20 20 )