mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 09:10:13 +03:00
~ | g4f v-0.1.8.9
This commit is contained in:
parent
9140541179
commit
063696630c
@ -11,7 +11,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.
|
> 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]
|
> [!Note]
|
||||||
> Latest pypi version: [`0.1.8.7`](https://pypi.org/project/g4f/0.1.8.7)
|
> Latest pypi version: [`0.1.8.9`](https://pypi.org/project/g4f/0.1.8.9)
|
||||||
```sh
|
```sh
|
||||||
pip install -U g4f
|
pip install -U g4f
|
||||||
```
|
```
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from asyncio import AbstractEventLoop
|
import sys
|
||||||
|
from asyncio import AbstractEventLoop
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from inspect import signature, Parameter
|
from inspect import signature, Parameter
|
||||||
from types import NoneType
|
from .helper import get_event_loop, get_cookies, format_prompt
|
||||||
|
from ..typing import CreateResult, AsyncResult, Messages
|
||||||
|
|
||||||
from .helper import get_event_loop, get_cookies, format_prompt
|
|
||||||
from ..typing import CreateResult, AsyncResult, Messages
|
|
||||||
|
|
||||||
|
if sys.version_info < (3, 10):
|
||||||
|
NoneType = type(None)
|
||||||
|
else:
|
||||||
|
from types import NoneType
|
||||||
|
|
||||||
class BaseProvider(ABC):
|
class BaseProvider(ABC):
|
||||||
url: str
|
url: str
|
||||||
|
@ -5,7 +5,7 @@ from .Provider import BaseProvider, AsyncGeneratorProvider, RetryProvider
|
|||||||
from .typing import Messages, CreateResult, AsyncResult, Union, List
|
from .typing import Messages, CreateResult, AsyncResult, Union, List
|
||||||
from . import debug
|
from . import debug
|
||||||
|
|
||||||
version = '0.1.8.7'
|
version = '0.1.8.9'
|
||||||
version_check = True
|
version_check = True
|
||||||
|
|
||||||
def check_pypi_version() -> None:
|
def check_pypi_version() -> None:
|
||||||
|
2
setup.py
2
setup.py
@ -11,7 +11,7 @@ with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as fh:
|
|||||||
with open('requirements.txt') as f:
|
with open('requirements.txt') as f:
|
||||||
required = f.read().splitlines()
|
required = f.read().splitlines()
|
||||||
|
|
||||||
VERSION = '0.1.8.8'
|
VERSION = '0.1.8.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
Block a user