mirror of https://github.com/xtekky/gpt4free.git
~ | g4f v-0.1.3.9
This commit is contained in:
parent
be293e7af7
commit
32d5536450
|
@ -4,7 +4,7 @@ By using this repository or any code related to it, you agree to the [legal noti
|
||||||
|
|
||||||
### New
|
### New
|
||||||
- official website: *https://g4f.ai*
|
- official website: *https://g4f.ai*
|
||||||
- latest pypi version: ([0.1.3.8](https://pypi.org/project/g4f/0.1.3.8)):
|
- latest pypi version: ([0.1.3.9](https://pypi.org/project/g4f/0.1.3.9)):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pip install -U g4f
|
pip install -U g4f
|
||||||
|
|
|
@ -4,7 +4,7 @@ from .Provider import BaseProvider, AsyncProvider
|
||||||
from .typing import Any, CreateResult, Union
|
from .typing import Any, CreateResult, Union
|
||||||
|
|
||||||
logging = False
|
logging = False
|
||||||
version = '0.1.3.8'
|
version = '0.1.3.9'
|
||||||
|
|
||||||
def get_model_and_provider(model: Union[models.Model, str], provider: type[BaseProvider], stream: bool):
|
def get_model_and_provider(model: Union[models.Model, str], provider: type[BaseProvider], stream: bool):
|
||||||
if isinstance(model, str):
|
if isinstance(model, str):
|
||||||
|
|
|
@ -7,11 +7,11 @@ from aiohttp import StreamReader
|
||||||
from aiohttp.base_protocol import BaseProtocol
|
from aiohttp.base_protocol import BaseProtocol
|
||||||
|
|
||||||
from curl_cffi.requests import AsyncSession as BaseSession
|
from curl_cffi.requests import AsyncSession as BaseSession
|
||||||
from curl_cffi.requests import Request, Response
|
from curl_cffi.requests import Response
|
||||||
|
|
||||||
|
|
||||||
class StreamResponse:
|
class StreamResponse:
|
||||||
def __init__(self, inner: Response, content: StreamReader, request: Request):
|
def __init__(self, inner: Response, content: StreamReader, request):
|
||||||
self.inner = inner
|
self.inner = inner
|
||||||
self.content = content
|
self.content = content
|
||||||
self.request = request
|
self.request = request
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -14,7 +14,7 @@ with open("requirements.txt") as f:
|
||||||
with open("interference/requirements.txt") as f:
|
with open("interference/requirements.txt") as f:
|
||||||
api_required = f.read().splitlines()
|
api_required = f.read().splitlines()
|
||||||
|
|
||||||
VERSION = '0.1.3.8'
|
VERSION = '0.1.3.9'
|
||||||
DESCRIPTION = (
|
DESCRIPTION = (
|
||||||
"The official gpt4free repository | various collection of powerful language models"
|
"The official gpt4free repository | various collection of powerful language models"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue