2023-10-14 16:36:24 +03:00
|
|
|
from __future__ import annotations
|
2023-10-05 06:13:37 +03: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-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
|
|
|
|
from .ChatgptDuo import ChatgptDuo
|
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-08 12:39:19 +03:00
|
|
|
from .Cromicle import Cromicle
|
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-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-16 16:34:00 +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,
|
|
|
|
'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,
|
|
|
|
'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,
|
|
|
|
'H2o': H2o,
|
|
|
|
'HuggingChat': HuggingChat,
|
|
|
|
'Komo': Komo,
|
|
|
|
'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-16 16:34:00 +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',
|
|
|
|
'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-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-08-27 18:37:44 +03:00
|
|
|
'H2o',
|
2023-08-28 02:43:45 +03:00
|
|
|
'HuggingChat',
|
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
|
|
|
]
|