diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-10-04 10:40:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 10:40:18 +0200 |
commit | 6eb3fa3e5fa5675363dc09209cf77fba0542a506 (patch) | |
tree | 0ca69953cbf4820667500a195c8f97c5da75c88e /g4f/Provider/deprecated | |
parent | ~ | g4f v-0.1.4.6 `pip install -U g4f` (diff) | |
parent | Sort providers in new dirs (diff) | |
download | gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.tar gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.tar.gz gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.tar.bz2 gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.tar.lz gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.tar.xz gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.tar.zst gpt4free-6eb3fa3e5fa5675363dc09209cf77fba0542a506.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/deprecated/AiService.py (renamed from g4f/Provider/AiService.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/CodeLinkAva.py (renamed from g4f/Provider/CodeLinkAva.py) | 6 | ||||
-rw-r--r-- | g4f/Provider/deprecated/DfeHub.py (renamed from g4f/Provider/DfeHub.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/EasyChat.py (renamed from g4f/Provider/EasyChat.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/Equing.py (renamed from g4f/Provider/Equing.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/FastGpt.py (renamed from g4f/Provider/FastGpt.py) | 5 | ||||
-rw-r--r-- | g4f/Provider/deprecated/Forefront.py (renamed from g4f/Provider/Forefront.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/GetGpt.py (renamed from g4f/Provider/GetGpt.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/Lockchat.py (renamed from g4f/Provider/Lockchat.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/Opchatgpts.py (renamed from g4f/Provider/Opchatgpts.py) | 2 | ||||
-rw-r--r-- | g4f/Provider/deprecated/PerplexityAi.py (renamed from g4f/Provider/PerplexityAi.py) | 2 | ||||
-rw-r--r-- | g4f/Provider/deprecated/V50.py (renamed from g4f/Provider/V50.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/Wewordle.py (renamed from g4f/Provider/Wewordle.py) | 2 | ||||
-rw-r--r-- | g4f/Provider/deprecated/Wuguokai.py (renamed from g4f/Provider/Wuguokai.py) | 4 | ||||
-rw-r--r-- | g4f/Provider/deprecated/__init__.py | 14 |
15 files changed, 41 insertions, 26 deletions
diff --git a/g4f/Provider/AiService.py b/g4f/Provider/deprecated/AiService.py index 2b5a6e7d..9b41e3c8 100644 --- a/g4f/Provider/AiService.py +++ b/g4f/Provider/deprecated/AiService.py @@ -2,8 +2,8 @@ from __future__ import annotations import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class AiService(BaseProvider): diff --git a/g4f/Provider/CodeLinkAva.py b/g4f/Provider/deprecated/CodeLinkAva.py index e3b3eb3e..8407ebb9 100644 --- a/g4f/Provider/CodeLinkAva.py +++ b/g4f/Provider/deprecated/CodeLinkAva.py @@ -3,14 +3,14 @@ from __future__ import annotations from aiohttp import ClientSession import json -from ..typing import AsyncGenerator -from .base_provider import AsyncGeneratorProvider +from ...typing import AsyncGenerator +from ..base_provider import AsyncGeneratorProvider class CodeLinkAva(AsyncGeneratorProvider): url = "https://ava-ai-ef611.web.app" supports_gpt_35_turbo = True - working = True + working = False @classmethod async def create_async_generator( diff --git a/g4f/Provider/DfeHub.py b/g4f/Provider/deprecated/DfeHub.py index d40e0380..4ea7501f 100644 --- a/g4f/Provider/DfeHub.py +++ b/g4f/Provider/deprecated/DfeHub.py @@ -6,8 +6,8 @@ import time import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class DfeHub(BaseProvider): diff --git a/g4f/Provider/EasyChat.py b/g4f/Provider/deprecated/EasyChat.py index dae5196d..ffe9a785 100644 --- a/g4f/Provider/EasyChat.py +++ b/g4f/Provider/deprecated/EasyChat.py @@ -5,8 +5,8 @@ import random import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class EasyChat(BaseProvider): diff --git a/g4f/Provider/Equing.py b/g4f/Provider/deprecated/Equing.py index 261c53c0..794274f2 100644 --- a/g4f/Provider/Equing.py +++ b/g4f/Provider/deprecated/Equing.py @@ -5,8 +5,8 @@ from abc import ABC, abstractmethod import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class Equing(BaseProvider): diff --git a/g4f/Provider/FastGpt.py b/g4f/Provider/deprecated/FastGpt.py index ef47f752..65efa29d 100644 --- a/g4f/Provider/FastGpt.py +++ b/g4f/Provider/deprecated/FastGpt.py @@ -6,10 +6,11 @@ from abc import ABC, abstractmethod import requests -from ..typing import Any, CreateResult +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider -class FastGpt(ABC): +class FastGpt(BaseProvider): url: str = 'https://chat9.fastgpt.me/' working = False needs_auth = False diff --git a/g4f/Provider/Forefront.py b/g4f/Provider/deprecated/Forefront.py index 8f51fb57..2f807e91 100644 --- a/g4f/Provider/Forefront.py +++ b/g4f/Provider/deprecated/Forefront.py @@ -4,8 +4,8 @@ import json import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class Forefront(BaseProvider): diff --git a/g4f/Provider/GetGpt.py b/g4f/Provider/deprecated/GetGpt.py index b96efaac..a5de1d29 100644 --- a/g4f/Provider/GetGpt.py +++ b/g4f/Provider/deprecated/GetGpt.py @@ -7,8 +7,8 @@ import uuid import requests from Crypto.Cipher import AES -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class GetGpt(BaseProvider): diff --git a/g4f/Provider/Lockchat.py b/g4f/Provider/deprecated/Lockchat.py index c15eec8d..4bd7c5fe 100644 --- a/g4f/Provider/Lockchat.py +++ b/g4f/Provider/deprecated/Lockchat.py @@ -4,8 +4,8 @@ import json import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class Lockchat(BaseProvider): diff --git a/g4f/Provider/Opchatgpts.py b/g4f/Provider/deprecated/Opchatgpts.py index 166323bd..3bfb96f1 100644 --- a/g4f/Provider/Opchatgpts.py +++ b/g4f/Provider/deprecated/Opchatgpts.py @@ -1,6 +1,6 @@ from __future__ import annotations -from .ChatgptLogin import ChatgptLogin +from ..ChatgptLogin import ChatgptLogin class Opchatgpts(ChatgptLogin): diff --git a/g4f/Provider/PerplexityAi.py b/g4f/Provider/deprecated/PerplexityAi.py index c7e58ad3..f4f71712 100644 --- a/g4f/Provider/PerplexityAi.py +++ b/g4f/Provider/deprecated/PerplexityAi.py @@ -5,7 +5,7 @@ import time import base64 from curl_cffi.requests import AsyncSession -from .base_provider import AsyncProvider, format_prompt, get_cookies +from ..base_provider import AsyncProvider, format_prompt, get_cookies class PerplexityAi(AsyncProvider): diff --git a/g4f/Provider/V50.py b/g4f/Provider/deprecated/V50.py index 81a95ba8..9a8b032c 100644 --- a/g4f/Provider/V50.py +++ b/g4f/Provider/deprecated/V50.py @@ -4,8 +4,8 @@ import uuid import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider class V50(BaseProvider): diff --git a/g4f/Provider/Wewordle.py b/g4f/Provider/deprecated/Wewordle.py index 26d040c3..c30887fb 100644 --- a/g4f/Provider/Wewordle.py +++ b/g4f/Provider/deprecated/Wewordle.py @@ -3,7 +3,7 @@ from __future__ import annotations import random, string, time from aiohttp import ClientSession -from .base_provider import AsyncProvider +from ..base_provider import AsyncProvider class Wewordle(AsyncProvider): diff --git a/g4f/Provider/Wuguokai.py b/g4f/Provider/deprecated/Wuguokai.py index 0a46f6ee..311131cf 100644 --- a/g4f/Provider/Wuguokai.py +++ b/g4f/Provider/deprecated/Wuguokai.py @@ -4,8 +4,8 @@ import random import requests -from ..typing import Any, CreateResult -from .base_provider import BaseProvider, format_prompt +from ...typing import Any, CreateResult +from ..base_provider import BaseProvider, format_prompt class Wuguokai(BaseProvider): diff --git a/g4f/Provider/deprecated/__init__.py b/g4f/Provider/deprecated/__init__.py new file mode 100644 index 00000000..8d22a3c3 --- /dev/null +++ b/g4f/Provider/deprecated/__init__.py @@ -0,0 +1,14 @@ +from .AiService import AiService +from .CodeLinkAva import CodeLinkAva +from .DfeHub import DfeHub +from .EasyChat import EasyChat +from .Forefront import Forefront +from .GetGpt import GetGpt +from .Opchatgpts import Opchatgpts +from .Lockchat import Lockchat +from .PerplexityAi import PerplexityAi +from .Wewordle import Wewordle +from .Equing import Equing +from .Wuguokai import Wuguokai +from .V50 import V50 +from .FastGpt import FastGpt
\ No newline at end of file |