2023-10-14 16:36:24 +03:00
|
|
|
from __future__ import annotations
|
2023-10-05 06:13:37 +03:00
|
|
|
from .AiAsk import AiAsk
|
|
|
|
from .Aichat import Aichat
|
|
|
|
from .AItianhu import AItianhu
|
|
|
|
from .AItianhuSpace import AItianhuSpace
|
2023-11-12 20:03:04 +03:00
|
|
|
from .Berlin import Berlin
|
2023-10-05 06:13:37 +03:00
|
|
|
from .Bing import Bing
|
|
|
|
from .ChatBase import ChatBase
|
2023-10-14 01:31:48 +03:00
|
|
|
from .ChatForAi import ChatForAi
|
2023-10-05 06:13:37 +03:00
|
|
|
from .Chatgpt4Online import Chatgpt4Online
|
|
|
|
from .ChatgptAi import ChatgptAi
|
|
|
|
from .ChatgptDemo import ChatgptDemo
|
2023-10-12 21:28:54 +03:00
|
|
|
from .ChatgptFree import ChatgptFree
|
|
|
|
from .ChatgptLogin import ChatgptLogin
|
2023-10-05 06:13:37 +03:00
|
|
|
from .ChatgptX import ChatgptX
|
2023-10-26 22:32:49 +03:00
|
|
|
from .DeepInfra import DeepInfra
|
2023-10-22 02:22:25 +03:00
|
|
|
from .FakeGpt import FakeGpt
|
2023-10-05 06:13:37 +03:00
|
|
|
from .FreeGpt import FreeGpt
|
2023-10-07 05:03:36 +03:00
|
|
|
from .GPTalk import GPTalk
|
2023-10-12 21:28:54 +03:00
|
|
|
from .GptChatly import GptChatly
|
2023-10-07 05:03:36 +03:00
|
|
|
from .GptForLove import GptForLove
|
2023-10-05 06:13:37 +03:00
|
|
|
from .GptGo import GptGo
|
2023-10-07 10:02:48 +03:00
|
|
|
from .GptGod import GptGod
|
2023-10-22 15:22:33 +03:00
|
|
|
from .Hashnode import Hashnode
|
2023-11-12 20:03:04 +03:00
|
|
|
from .Koala import Koala
|
2023-10-05 06:13:37 +03:00
|
|
|
from .Liaobots import Liaobots
|
2023-10-15 20:10:25 +03:00
|
|
|
from .Llama2 import Llama2
|
2023-10-22 09:57:31 +03:00
|
|
|
from .MyShell import MyShell
|
2023-10-15 20:10:25 +03:00
|
|
|
from .NoowAi import NoowAi
|
2023-10-14 01:31:48 +03:00
|
|
|
from .Opchatgpts import Opchatgpts
|
2023-10-05 06:13:37 +03:00
|
|
|
from .Phind import Phind
|
|
|
|
from .Vercel import Vercel
|
|
|
|
from .Ylokh import Ylokh
|
|
|
|
from .You import You
|
|
|
|
from .Yqcloud import Yqcloud
|
2023-10-27 23:59:14 +03:00
|
|
|
from .GeekGpt import GeekGpt
|
2023-08-27 18:37:44 +03:00
|
|
|
|
2023-09-21 21:10:59 +03:00
|
|
|
from .base_provider import BaseProvider, AsyncProvider, AsyncGeneratorProvider
|
|
|
|
from .retry_provider import RetryProvider
|
2023-10-04 08:20:51 +03:00
|
|
|
from .deprecated import *
|
|
|
|
from .needs_auth import *
|
2023-10-05 06:13:37 +03:00
|
|
|
from .unfinished import *
|
2023-06-24 04:47:00 +03:00
|
|
|
|
2023-10-10 01:45:29 +03:00
|
|
|
class ProviderUtils:
|
|
|
|
convert: dict[str, BaseProvider] = {
|
|
|
|
'AItianhu': AItianhu,
|
|
|
|
'AItianhuSpace': AItianhuSpace,
|
|
|
|
'Acytoo': Acytoo,
|
|
|
|
'AiAsk': AiAsk,
|
|
|
|
'AiService': AiService,
|
|
|
|
'Aibn': Aibn,
|
|
|
|
'Aichat': Aichat,
|
|
|
|
'Ails': Ails,
|
|
|
|
'Aivvm': Aivvm,
|
|
|
|
'AsyncGeneratorProvider': AsyncGeneratorProvider,
|
|
|
|
'AsyncProvider': AsyncProvider,
|
|
|
|
'Bard': Bard,
|
|
|
|
'BaseProvider': BaseProvider,
|
2023-11-12 20:03:04 +03:00
|
|
|
'Berlin': Berlin,
|
2023-10-10 01:45:29 +03:00
|
|
|
'Bing': Bing,
|
|
|
|
'ChatBase': ChatBase,
|
|
|
|
'ChatForAi': ChatForAi,
|
|
|
|
'Chatgpt4Online': Chatgpt4Online,
|
|
|
|
'ChatgptAi': ChatgptAi,
|
|
|
|
'ChatgptDemo': ChatgptDemo,
|
|
|
|
'ChatgptDuo': ChatgptDuo,
|
2023-10-12 21:28:54 +03:00
|
|
|
'ChatgptFree': ChatgptFree,
|
2023-10-10 01:45:29 +03:00
|
|
|
'ChatgptLogin': ChatgptLogin,
|
|
|
|
'ChatgptX': ChatgptX,
|
|
|
|
'CodeLinkAva': CodeLinkAva,
|
|
|
|
'Cromicle': Cromicle,
|
2023-10-26 22:32:49 +03:00
|
|
|
'DeepInfra': DeepInfra,
|
2023-10-10 01:45:29 +03:00
|
|
|
'DfeHub': DfeHub,
|
|
|
|
'EasyChat': EasyChat,
|
|
|
|
'Equing': Equing,
|
|
|
|
'FastGpt': FastGpt,
|
|
|
|
'Forefront': Forefront,
|
2023-10-22 02:22:25 +03:00
|
|
|
'FakeGpt': FakeGpt,
|
2023-10-10 01:45:29 +03:00
|
|
|
'FreeGpt': FreeGpt,
|
|
|
|
'GPTalk': GPTalk,
|
2023-10-12 21:28:54 +03:00
|
|
|
'GptChatly': GptChatly,
|
2023-10-10 01:45:29 +03:00
|
|
|
'GetGpt': GetGpt,
|
|
|
|
'GptForLove': GptForLove,
|
|
|
|
'GptGo': GptGo,
|
|
|
|
'GptGod': GptGod,
|
2023-10-22 15:22:33 +03:00
|
|
|
'Hashnode': Hashnode,
|
2023-10-10 01:45:29 +03:00
|
|
|
'H2o': H2o,
|
|
|
|
'HuggingChat': HuggingChat,
|
|
|
|
'Komo': Komo,
|
2023-11-12 20:03:04 +03:00
|
|
|
'Koala': Koala,
|
2023-10-10 01:45:29 +03:00
|
|
|
'Liaobots': Liaobots,
|
2023-10-15 20:10:25 +03:00
|
|
|
'Llama2': Llama2,
|
2023-10-10 01:45:29 +03:00
|
|
|
'Lockchat': Lockchat,
|
|
|
|
'MikuChat': MikuChat,
|
|
|
|
'Myshell': Myshell,
|
2023-10-22 09:57:31 +03:00
|
|
|
'MyShell': MyShell,
|
2023-10-15 20:10:25 +03:00
|
|
|
'NoowAi': NoowAi,
|
2023-10-10 01:45:29 +03:00
|
|
|
'Opchatgpts': Opchatgpts,
|
|
|
|
'OpenAssistant': OpenAssistant,
|
|
|
|
'OpenaiChat': OpenaiChat,
|
|
|
|
'PerplexityAi': PerplexityAi,
|
|
|
|
'Phind': Phind,
|
|
|
|
'Raycast': Raycast,
|
|
|
|
'Theb': Theb,
|
|
|
|
'V50': V50,
|
|
|
|
'Vercel': Vercel,
|
|
|
|
'Vitalentum': Vitalentum,
|
|
|
|
'Wewordle': Wewordle,
|
|
|
|
'Wuguokai': Wuguokai,
|
|
|
|
'Ylokh': Ylokh,
|
|
|
|
'You': You,
|
2023-10-14 16:36:24 +03:00
|
|
|
'Yqcloud': Yqcloud,
|
2023-10-27 23:59:14 +03:00
|
|
|
'GeekGpt': GeekGpt,
|
2023-10-14 16:36:24 +03:00
|
|
|
|
|
|
|
'BaseProvider': BaseProvider,
|
|
|
|
'AsyncProvider': AsyncProvider,
|
|
|
|
'AsyncGeneratorProvider': AsyncGeneratorProvider,
|
|
|
|
'RetryProvider': RetryProvider,
|
2023-10-10 01:45:29 +03:00
|
|
|
}
|
|
|
|
|
2023-07-28 13:07:17 +03:00
|
|
|
__all__ = [
|
2023-08-27 18:37:44 +03:00
|
|
|
'BaseProvider',
|
2023-09-21 21:10:59 +03:00
|
|
|
'AsyncProvider',
|
|
|
|
'AsyncGeneratorProvider',
|
|
|
|
'RetryProvider',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Acytoo',
|
2023-10-05 06:13:37 +03:00
|
|
|
'AiAsk',
|
2023-09-26 11:03:37 +03:00
|
|
|
'Aibn',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Aichat',
|
|
|
|
'Ails',
|
2023-10-07 23:21:34 +03:00
|
|
|
'Aivvm',
|
2023-08-27 18:37:44 +03:00
|
|
|
'AiService',
|
|
|
|
'AItianhu',
|
2023-09-26 01:52:29 +03:00
|
|
|
'AItianhuSpace',
|
2023-09-12 01:47:03 +03:00
|
|
|
'Aivvm',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Bard',
|
2023-11-12 20:03:04 +03:00
|
|
|
'Berlin',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Bing',
|
2023-09-10 20:06:46 +03:00
|
|
|
'ChatBase',
|
2023-10-01 07:38:11 +03:00
|
|
|
'ChatForAi',
|
2023-10-05 06:13:37 +03:00
|
|
|
'Chatgpt4Online',
|
2023-08-27 18:37:44 +03:00
|
|
|
'ChatgptAi',
|
2023-10-05 06:13:37 +03:00
|
|
|
'ChatgptDemo',
|
2023-09-26 11:03:37 +03:00
|
|
|
'ChatgptDuo',
|
2023-10-12 21:28:54 +03:00
|
|
|
'ChatgptFree',
|
2023-08-27 18:37:44 +03:00
|
|
|
'ChatgptLogin',
|
2023-10-05 06:13:37 +03:00
|
|
|
'ChatgptX',
|
2023-10-08 12:39:19 +03:00
|
|
|
'Cromicle',
|
2023-10-26 22:32:49 +03:00
|
|
|
'DeepInfra',
|
2023-09-10 00:07:00 +03:00
|
|
|
'CodeLinkAva',
|
2023-08-27 18:37:44 +03:00
|
|
|
'DfeHub',
|
|
|
|
'EasyChat',
|
|
|
|
'Forefront',
|
2023-10-22 02:22:25 +03:00
|
|
|
'FakeGpt',
|
2023-10-01 07:38:11 +03:00
|
|
|
'FreeGpt',
|
2023-10-07 05:03:36 +03:00
|
|
|
'GPTalk',
|
2023-10-12 21:28:54 +03:00
|
|
|
'GptChatly',
|
2023-10-07 05:03:36 +03:00
|
|
|
'GptForLove',
|
2023-08-27 18:37:44 +03:00
|
|
|
'GetGpt',
|
2023-09-18 04:21:12 +03:00
|
|
|
'GptGo',
|
2023-10-07 10:02:48 +03:00
|
|
|
'GptGod',
|
2023-10-22 15:22:33 +03:00
|
|
|
'Hashnode',
|
2023-08-27 18:37:44 +03:00
|
|
|
'H2o',
|
2023-08-28 02:43:45 +03:00
|
|
|
'HuggingChat',
|
2023-11-12 20:03:04 +03:00
|
|
|
'Koala',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Liaobots',
|
2023-10-15 20:10:25 +03:00
|
|
|
'Llama2',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Lockchat',
|
2023-09-25 16:52:19 +03:00
|
|
|
'Myshell',
|
2023-10-22 09:57:31 +03:00
|
|
|
'MyShell',
|
2023-10-15 20:10:25 +03:00
|
|
|
'NoowAi',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Opchatgpts',
|
|
|
|
'Raycast',
|
|
|
|
'OpenaiChat',
|
2023-08-28 02:43:45 +03:00
|
|
|
'OpenAssistant',
|
2023-09-21 00:06:52 +03:00
|
|
|
'PerplexityAi',
|
2023-10-02 18:01:15 +03:00
|
|
|
'Phind',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Theb',
|
|
|
|
'Vercel',
|
2023-09-12 01:47:03 +03:00
|
|
|
'Vitalentum',
|
2023-08-27 18:37:44 +03:00
|
|
|
'Wewordle',
|
2023-09-12 01:47:03 +03:00
|
|
|
'Ylokh',
|
2023-08-27 18:37:44 +03:00
|
|
|
'You',
|
|
|
|
'Yqcloud',
|
|
|
|
'Equing',
|
|
|
|
'FastGpt',
|
|
|
|
'Wuguokai',
|
2023-10-16 16:34:00 +03:00
|
|
|
'V50',
|
|
|
|
'GeekGpt'
|
2023-10-12 21:28:54 +03:00
|
|
|
]
|