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