2023-11-16 18:56:23 +03:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2024-02-22 02:16:58 +03:00
|
|
|
from ..providers.types import BaseProvider, ProviderType
|
2024-05-19 06:09:55 +03:00
|
|
|
from ..providers.retry_provider import RetryProvider, IterListProvider
|
2024-02-22 02:16:58 +03:00
|
|
|
from ..providers.base_provider import AsyncProvider, AsyncGeneratorProvider
|
|
|
|
from ..providers.create_images import CreateImagesProvider
|
|
|
|
|
2024-09-25 11:44:23 +03:00
|
|
|
from .deprecated import *
|
2024-02-09 00:02:52 +03:00
|
|
|
from .selenium import *
|
2024-01-01 19:48:57 +03:00
|
|
|
from .needs_auth import *
|
|
|
|
|
2024-10-11 09:32:22 +03:00
|
|
|
from .nexra import *
|
|
|
|
|
2024-10-17 15:44:27 +03:00
|
|
|
from .Ai4Chat import Ai4Chat
|
2024-07-08 23:49:38 +03:00
|
|
|
from .AI365VIP import AI365VIP
|
2024-09-27 00:24:44 +03:00
|
|
|
from .AIChatFree import AIChatFree
|
2024-10-11 09:32:22 +03:00
|
|
|
from .AIUncensored import AIUncensored
|
2024-07-25 09:21:55 +03:00
|
|
|
from .Allyfy import Allyfy
|
2024-10-11 09:32:22 +03:00
|
|
|
from .AmigoChat import AmigoChat
|
2024-08-29 09:03:32 +03:00
|
|
|
from .AiChatOnline import AiChatOnline
|
2024-09-04 22:23:17 +03:00
|
|
|
from .AiChats import AiChats
|
2024-10-16 21:00:08 +03:00
|
|
|
from .AiMathGPT import AiMathGPT
|
2024-09-13 17:09:31 +03:00
|
|
|
from .Airforce import Airforce
|
2024-03-12 04:06:06 +03:00
|
|
|
from .Aura import Aura
|
|
|
|
from .Bing import Bing
|
2024-02-22 02:16:58 +03:00
|
|
|
from .BingCreateImages import BingCreateImages
|
2024-04-12 22:00:57 +03:00
|
|
|
from .Blackbox import Blackbox
|
2024-09-24 15:37:14 +03:00
|
|
|
from .ChatGot import ChatGot
|
2024-09-24 13:23:53 +03:00
|
|
|
from .ChatGpt import ChatGpt
|
2024-03-12 04:06:06 +03:00
|
|
|
from .Chatgpt4Online import Chatgpt4Online
|
2024-09-02 11:55:51 +03:00
|
|
|
from .Chatgpt4o import Chatgpt4o
|
2024-09-24 13:23:53 +03:00
|
|
|
from .ChatGptEs import ChatGptEs
|
2024-03-12 04:06:06 +03:00
|
|
|
from .ChatgptFree import ChatgptFree
|
2024-09-27 12:13:11 +03:00
|
|
|
from .ChatHub import ChatHub
|
2024-10-11 09:32:22 +03:00
|
|
|
from .ChatifyAI import ChatifyAI
|
|
|
|
from .Cloudflare import Cloudflare
|
|
|
|
from .DarkAI import DarkAI
|
2024-07-08 23:49:38 +03:00
|
|
|
from .DDG import DDG
|
2024-03-12 04:06:06 +03:00
|
|
|
from .DeepInfra import DeepInfra
|
2024-09-24 13:23:53 +03:00
|
|
|
from .DeepInfraChat import DeepInfraChat
|
2024-04-10 09:14:50 +03:00
|
|
|
from .DeepInfraImage import DeepInfraImage
|
2024-10-16 21:45:37 +03:00
|
|
|
from .Editee import Editee
|
2024-03-12 04:06:06 +03:00
|
|
|
from .FlowGpt import FlowGpt
|
2024-09-06 23:19:18 +03:00
|
|
|
from .Free2GPT import Free2GPT
|
2024-03-12 04:06:06 +03:00
|
|
|
from .FreeChatgpt import FreeChatgpt
|
|
|
|
from .FreeGpt import FreeGpt
|
2024-07-30 01:15:36 +03:00
|
|
|
from .FreeNetfly import FreeNetfly
|
2024-03-12 04:06:06 +03:00
|
|
|
from .GeminiPro import GeminiPro
|
2024-07-08 23:49:38 +03:00
|
|
|
from .GigaChat import GigaChat
|
2024-09-27 12:26:36 +03:00
|
|
|
from .GPROChat import GPROChat
|
2024-03-12 04:06:06 +03:00
|
|
|
from .HuggingChat import HuggingChat
|
|
|
|
from .HuggingFace import HuggingFace
|
|
|
|
from .Koala import Koala
|
|
|
|
from .Liaobots import Liaobots
|
2024-04-07 11:36:13 +03:00
|
|
|
from .Local import Local
|
2024-09-07 01:16:11 +03:00
|
|
|
from .MagickPen import MagickPen
|
2024-04-20 11:43:53 +03:00
|
|
|
from .MetaAI import MetaAI
|
2024-09-24 13:23:53 +03:00
|
|
|
#from .MetaAIAccount import MetaAIAccount
|
2024-05-06 00:38:31 +03:00
|
|
|
from .Ollama import Ollama
|
2024-03-12 04:06:06 +03:00
|
|
|
from .PerplexityLabs import PerplexityLabs
|
|
|
|
from .Pi import Pi
|
2024-06-22 19:13:49 +03:00
|
|
|
from .Pizzagpt import Pizzagpt
|
2024-09-12 20:28:50 +03:00
|
|
|
from .Prodia import Prodia
|
2024-07-08 23:49:38 +03:00
|
|
|
from .Reka import Reka
|
2024-04-21 23:39:00 +03:00
|
|
|
from .Replicate import Replicate
|
2024-07-08 23:49:38 +03:00
|
|
|
from .ReplicateHome import ReplicateHome
|
2024-10-17 13:17:38 +03:00
|
|
|
from .RubiksAI import RubiksAI
|
2024-09-02 11:55:51 +03:00
|
|
|
from .TeachAnything import TeachAnything
|
|
|
|
from .Upstage import Upstage
|
2024-04-08 08:24:00 +03:00
|
|
|
from .WhiteRabbitNeo import WhiteRabbitNeo
|
2024-03-12 04:06:06 +03:00
|
|
|
from .You import You
|
2023-08-27 18:37:44 +03:00
|
|
|
|
2023-11-16 18:56:23 +03:00
|
|
|
import sys
|
2023-10-10 01:45:29 +03:00
|
|
|
|
2023-11-16 18:56:23 +03:00
|
|
|
__modules__: list = [
|
|
|
|
getattr(sys.modules[__name__], provider) for provider in dir()
|
|
|
|
if not provider.startswith("__")
|
|
|
|
]
|
2024-01-01 19:48:57 +03:00
|
|
|
__providers__: list[ProviderType] = [
|
2023-11-16 18:56:23 +03:00
|
|
|
provider for provider in __modules__
|
|
|
|
if isinstance(provider, type)
|
|
|
|
and issubclass(provider, BaseProvider)
|
2023-10-12 21:28:54 +03:00
|
|
|
]
|
2023-11-16 18:56:23 +03:00
|
|
|
__all__: list[str] = [
|
|
|
|
provider.__name__ for provider in __providers__
|
|
|
|
]
|
2024-01-01 19:48:57 +03:00
|
|
|
__map__: dict[str, ProviderType] = dict([
|
2023-11-16 18:56:23 +03:00
|
|
|
(provider.__name__, provider) for provider in __providers__
|
|
|
|
])
|
|
|
|
|
|
|
|
class ProviderUtils:
|
2024-04-12 22:00:57 +03:00
|
|
|
convert: dict[str, ProviderType] = __map__
|