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