2023-10-14 13:36:24 +00:00
|
|
|
from __future__ import annotations
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Acytoo import Acytoo
|
|
|
|
from .AiAsk import AiAsk
|
|
|
|
from .Aibn import Aibn
|
|
|
|
from .Aichat import Aichat
|
|
|
|
from .Ails import Ails
|
|
|
|
from .AItianhu import AItianhu
|
|
|
|
from .AItianhuSpace import AItianhuSpace
|
|
|
|
from .Bing import Bing
|
|
|
|
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
|
|
|
|
from .ChatgptDuo import ChatgptDuo
|
2023-10-12 18:28:54 +00:00
|
|
|
from .ChatgptFree import ChatgptFree
|
|
|
|
from .ChatgptLogin import ChatgptLogin
|
2023-10-05 03:13:37 +00:00
|
|
|
from .ChatgptX import ChatgptX
|
2023-10-08 09:39:19 +00:00
|
|
|
from .Cromicle import Cromicle
|
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-05 03:13:37 +00:00
|
|
|
from .H2o import H2o
|
|
|
|
from .Liaobots import Liaobots
|
|
|
|
from .Myshell import Myshell
|
2023-10-13 22:31:48 +00:00
|
|
|
from .Opchatgpts import Opchatgpts
|
2023-10-05 03:13:37 +00:00
|
|
|
from .Phind import Phind
|
|
|
|
from .Vercel import Vercel
|
|
|
|
from .Ylokh import Ylokh
|
|
|
|
from .You import You
|
|
|
|
from .Yqcloud import Yqcloud
|
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-10-09 22:45:29 +00: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,
|
|
|
|
'Bing': Bing,
|
|
|
|
'ChatBase': ChatBase,
|
|
|
|
'ChatForAi': ChatForAi,
|
|
|
|
'Chatgpt4Online': Chatgpt4Online,
|
|
|
|
'ChatgptAi': ChatgptAi,
|
|
|
|
'ChatgptDemo': ChatgptDemo,
|
|
|
|
'ChatgptDuo': ChatgptDuo,
|
2023-10-12 18:28:54 +00:00
|
|
|
'ChatgptFree': ChatgptFree,
|
2023-10-09 22:45:29 +00:00
|
|
|
'ChatgptLogin': ChatgptLogin,
|
|
|
|
'ChatgptX': ChatgptX,
|
|
|
|
'CodeLinkAva': CodeLinkAva,
|
|
|
|
'Cromicle': Cromicle,
|
|
|
|
'DfeHub': DfeHub,
|
|
|
|
'EasyChat': EasyChat,
|
|
|
|
'Equing': Equing,
|
|
|
|
'FastGpt': FastGpt,
|
|
|
|
'Forefront': Forefront,
|
|
|
|
'FreeGpt': FreeGpt,
|
|
|
|
'GPTalk': GPTalk,
|
2023-10-12 18:28:54 +00:00
|
|
|
'GptChatly': GptChatly,
|
2023-10-09 22:45:29 +00:00
|
|
|
'GetGpt': GetGpt,
|
|
|
|
'GptForLove': GptForLove,
|
|
|
|
'GptGo': GptGo,
|
|
|
|
'GptGod': GptGod,
|
|
|
|
'H2o': H2o,
|
|
|
|
'HuggingChat': HuggingChat,
|
|
|
|
'Komo': Komo,
|
|
|
|
'Liaobots': Liaobots,
|
|
|
|
'Lockchat': Lockchat,
|
|
|
|
'MikuChat': MikuChat,
|
|
|
|
'Myshell': Myshell,
|
|
|
|
'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 13:36:24 +00:00
|
|
|
'Yqcloud': Yqcloud,
|
|
|
|
|
|
|
|
'BaseProvider': BaseProvider,
|
|
|
|
'AsyncProvider': AsyncProvider,
|
|
|
|
'AsyncGeneratorProvider': AsyncGeneratorProvider,
|
|
|
|
'RetryProvider': RetryProvider,
|
2023-10-09 22:45:29 +00:00
|
|
|
}
|
|
|
|
|
2023-07-28 10:07:17 +00:00
|
|
|
__all__ = [
|
2023-08-27 15:37:44 +00:00
|
|
|
'BaseProvider',
|
2023-09-21 18:10:59 +00:00
|
|
|
'AsyncProvider',
|
|
|
|
'AsyncGeneratorProvider',
|
|
|
|
'RetryProvider',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Acytoo',
|
2023-10-05 03:13:37 +00:00
|
|
|
'AiAsk',
|
2023-09-26 08:03:37 +00:00
|
|
|
'Aibn',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Aichat',
|
|
|
|
'Ails',
|
2023-10-07 20:21:34 +00:00
|
|
|
'Aivvm',
|
2023-08-27 15:37:44 +00:00
|
|
|
'AiService',
|
|
|
|
'AItianhu',
|
2023-09-25 22:52:29 +00:00
|
|
|
'AItianhuSpace',
|
2023-09-11 22:47:03 +00:00
|
|
|
'Aivvm',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Bard',
|
|
|
|
'Bing',
|
2023-09-10 17:06:46 +00:00
|
|
|
'ChatBase',
|
2023-10-01 04:38:11 +00:00
|
|
|
'ChatForAi',
|
2023-10-05 03:13:37 +00:00
|
|
|
'Chatgpt4Online',
|
2023-08-27 15:37:44 +00:00
|
|
|
'ChatgptAi',
|
2023-10-05 03:13:37 +00:00
|
|
|
'ChatgptDemo',
|
2023-09-26 08:03:37 +00:00
|
|
|
'ChatgptDuo',
|
2023-10-12 18:28:54 +00:00
|
|
|
'ChatgptFree',
|
2023-08-27 15:37:44 +00:00
|
|
|
'ChatgptLogin',
|
2023-10-05 03:13:37 +00:00
|
|
|
'ChatgptX',
|
2023-10-08 09:39:19 +00:00
|
|
|
'Cromicle',
|
2023-09-09 21:07:00 +00:00
|
|
|
'CodeLinkAva',
|
2023-08-27 15:37:44 +00:00
|
|
|
'DfeHub',
|
|
|
|
'EasyChat',
|
|
|
|
'Forefront',
|
2023-10-01 04:38:11 +00:00
|
|
|
'FreeGpt',
|
2023-10-07 02:03:36 +00:00
|
|
|
'GPTalk',
|
2023-10-12 18:28:54 +00:00
|
|
|
'GptChatly',
|
2023-10-07 02:03:36 +00:00
|
|
|
'GptForLove',
|
2023-08-27 15:37:44 +00:00
|
|
|
'GetGpt',
|
2023-09-18 01:21:12 +00:00
|
|
|
'GptGo',
|
2023-10-07 07:02:48 +00:00
|
|
|
'GptGod',
|
2023-08-27 15:37:44 +00:00
|
|
|
'H2o',
|
2023-08-27 23:43:45 +00:00
|
|
|
'HuggingChat',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Liaobots',
|
|
|
|
'Lockchat',
|
2023-09-25 13:52:19 +00:00
|
|
|
'Myshell',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Opchatgpts',
|
|
|
|
'Raycast',
|
|
|
|
'OpenaiChat',
|
2023-08-27 23:43:45 +00:00
|
|
|
'OpenAssistant',
|
2023-09-20 21:06:52 +00:00
|
|
|
'PerplexityAi',
|
2023-10-02 15:01:15 +00:00
|
|
|
'Phind',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Theb',
|
|
|
|
'Vercel',
|
2023-09-11 22:47:03 +00:00
|
|
|
'Vitalentum',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Wewordle',
|
2023-09-11 22:47:03 +00:00
|
|
|
'Ylokh',
|
2023-08-27 15:37:44 +00:00
|
|
|
'You',
|
|
|
|
'Yqcloud',
|
|
|
|
'Equing',
|
|
|
|
'FastGpt',
|
|
|
|
'Wuguokai',
|
|
|
|
'V50'
|
2023-10-12 18:28:54 +00:00
|
|
|
]
|