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-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-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-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-10-16 13:34:00 +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-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,
|
2023-10-21 23:22:25 +00:00
|
|
|
'FakeGpt': FakeGpt,
|
2023-10-09 22:45:29 +00:00
|
|
|
'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,
|
2023-10-22 12:22:33 +00:00
|
|
|
'Hashnode': Hashnode,
|
2023-10-09 22:45:29 +00:00
|
|
|
'H2o': H2o,
|
|
|
|
'HuggingChat': HuggingChat,
|
|
|
|
'Komo': Komo,
|
|
|
|
'Liaobots': Liaobots,
|
2023-10-15 17:10:25 +00:00
|
|
|
'Llama2': Llama2,
|
2023-10-09 22:45:29 +00:00
|
|
|
'Lockchat': Lockchat,
|
|
|
|
'MikuChat': MikuChat,
|
|
|
|
'Myshell': Myshell,
|
2023-10-22 06:57:31 +00:00
|
|
|
'MyShell': MyShell,
|
2023-10-15 17:10:25 +00:00
|
|
|
'NoowAi': NoowAi,
|
2023-10-09 22:45:29 +00: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 13:36:24 +00:00
|
|
|
'Yqcloud': Yqcloud,
|
2023-10-16 13:34:00 +00:00
|
|
|
'Geekgpt': GeekGpt,
|
2023-10-14 13:36:24 +00:00
|
|
|
|
|
|
|
'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-21 23:22:25 +00:00
|
|
|
'FakeGpt',
|
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-10-22 12:22:33 +00:00
|
|
|
'Hashnode',
|
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',
|
2023-10-15 17:10:25 +00:00
|
|
|
'Llama2',
|
2023-08-27 15:37:44 +00:00
|
|
|
'Lockchat',
|
2023-09-25 13:52:19 +00:00
|
|
|
'Myshell',
|
2023-10-22 06:57:31 +00:00
|
|
|
'MyShell',
|
2023-10-15 17:10:25 +00:00
|
|
|
'NoowAi',
|
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',
|
2023-10-16 13:34:00 +00:00
|
|
|
'V50',
|
|
|
|
'GeekGpt'
|
2023-10-12 18:28:54 +00:00
|
|
|
]
|