2023-11-16 15:56:23 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2023-10-05 03:13:37 +00:00
|
|
|
from .AiAsk import AiAsk
|
|
|
|
from .Aichat import Aichat
|
2023-11-18 03:38:31 +00:00
|
|
|
from .AiChatOnline import AiChatOnline
|
2023-10-05 03:13:37 +00:00
|
|
|
from .AItianhu import AItianhu
|
|
|
|
from .AItianhuSpace import AItianhuSpace
|
2023-11-12 17:03:04 +00:00
|
|
|
from .Berlin import Berlin
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Bing import Bing
|
2023-11-16 15:56:23 +00:00
|
|
|
from .ChatAnywhere import ChatAnywhere
|
2023-10-05 03:13:37 +00:00
|
|
|
from .ChatBase import ChatBase
|
2023-10-13 22:31:48 +00:00
|
|
|
from .ChatForAi import ChatForAi
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Chatgpt4Online import Chatgpt4Online
|
|
|
|
from .ChatgptAi import ChatgptAi
|
|
|
|
from .ChatgptDemo import ChatgptDemo
|
2023-11-18 03:38:31 +00:00
|
|
|
from .ChatgptDemoAi import ChatgptDemoAi
|
2023-10-12 18:28:54 +00:00
|
|
|
from .ChatgptFree import ChatgptFree
|
|
|
|
from .ChatgptLogin import ChatgptLogin
|
2023-11-18 03:38:31 +00:00
|
|
|
from .ChatgptNext import ChatgptNext
|
2023-10-05 03:13:37 +00:00
|
|
|
from .ChatgptX import ChatgptX
|
2023-10-26 19:32:49 +00:00
|
|
|
from .DeepInfra import DeepInfra
|
2023-10-21 23:22:25 +00:00
|
|
|
from .FakeGpt import FakeGpt
|
2023-10-05 03:13:37 +00:00
|
|
|
from .FreeGpt import FreeGpt
|
2023-10-07 02:03:36 +00:00
|
|
|
from .GPTalk import GPTalk
|
2023-10-12 18:28:54 +00:00
|
|
|
from .GptChatly import GptChatly
|
2023-10-07 02:03:36 +00:00
|
|
|
from .GptForLove import GptForLove
|
2023-10-05 03:13:37 +00:00
|
|
|
from .GptGo import GptGo
|
2023-10-07 07:02:48 +00:00
|
|
|
from .GptGod import GptGod
|
2023-10-22 12:22:33 +00:00
|
|
|
from .Hashnode import Hashnode
|
2023-11-12 17:03:04 +00:00
|
|
|
from .Koala import Koala
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Liaobots import Liaobots
|
2023-10-15 17:10:25 +00:00
|
|
|
from .Llama2 import Llama2
|
2023-10-22 06:57:31 +00:00
|
|
|
from .MyShell import MyShell
|
2023-10-15 17:10:25 +00:00
|
|
|
from .NoowAi import NoowAi
|
2023-11-18 03:38:31 +00:00
|
|
|
from .OnlineGpt import OnlineGpt
|
2023-10-13 22:31:48 +00:00
|
|
|
from .Opchatgpts import Opchatgpts
|
2023-11-16 15:56:23 +00:00
|
|
|
from .PerplexityAi import PerplexityAi
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Phind import Phind
|
2023-11-18 03:38:31 +00:00
|
|
|
from .TalkAi import TalkAi
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Vercel import Vercel
|
|
|
|
from .Ylokh import Ylokh
|
|
|
|
from .You import You
|
|
|
|
from .Yqcloud import Yqcloud
|
2023-10-27 20:59:14 +00:00
|
|
|
from .GeekGpt import GeekGpt
|
2023-08-27 15:37:44 +00:00
|
|
|
|
2023-09-21 18:10:59 +00:00
|
|
|
from .base_provider import BaseProvider, AsyncProvider, AsyncGeneratorProvider
|
|
|
|
from .retry_provider import RetryProvider
|
2023-10-04 05:20:51 +00:00
|
|
|
from .deprecated import *
|
|
|
|
from .needs_auth import *
|
2023-10-05 03:13:37 +00:00
|
|
|
from .unfinished import *
|
2023-06-24 01:47:00 +00:00
|
|
|
|
2023-11-16 15:56:23 +00:00
|
|
|
import sys
|
2023-10-09 22:45:29 +00:00
|
|
|
|
2023-11-16 15:56:23 +00:00
|
|
|
__modules__: list = [
|
|
|
|
getattr(sys.modules[__name__], provider) for provider in dir()
|
|
|
|
if not provider.startswith("__")
|
|
|
|
]
|
|
|
|
__providers__: list[type[BaseProvider]] = [
|
|
|
|
provider for provider in __modules__
|
|
|
|
if isinstance(provider, type)
|
|
|
|
and issubclass(provider, BaseProvider)
|
2023-10-12 18:28:54 +00:00
|
|
|
]
|
2023-11-16 15:56:23 +00:00
|
|
|
__all__: list[str] = [
|
|
|
|
provider.__name__ for provider in __providers__
|
|
|
|
]
|
|
|
|
__map__: dict[str, BaseProvider] = dict([
|
|
|
|
(provider.__name__, provider) for provider in __providers__
|
|
|
|
])
|
|
|
|
|
|
|
|
class ProviderUtils:
|
|
|
|
convert: dict[str, BaseProvider] = __map__
|