2023-11-16 15:56:23 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2024-02-21 23:16:58 +00:00
|
|
|
from ..providers.types import BaseProvider, ProviderType
|
2024-05-19 03:09:55 +00:00
|
|
|
from ..providers.retry_provider import RetryProvider, IterListProvider
|
2024-02-21 23:16:58 +00:00
|
|
|
from ..providers.base_provider import AsyncProvider, AsyncGeneratorProvider
|
|
|
|
from ..providers.create_images import CreateImagesProvider
|
|
|
|
|
2024-01-01 16:48:57 +00:00
|
|
|
from .deprecated import *
|
2024-03-12 01:06:06 +00:00
|
|
|
from .not_working import *
|
2024-02-08 21:02:52 +00:00
|
|
|
from .selenium import *
|
2024-01-01 16:48:57 +00:00
|
|
|
from .needs_auth import *
|
|
|
|
|
2024-07-08 20:49:38 +00:00
|
|
|
from .AI365VIP import AI365VIP
|
2024-07-25 06:21:55 +00:00
|
|
|
from .Allyfy import Allyfy
|
2024-03-12 01:06:06 +00:00
|
|
|
from .Aura import Aura
|
|
|
|
from .Bing import Bing
|
2024-02-21 23:16:58 +00:00
|
|
|
from .BingCreateImages import BingCreateImages
|
2024-04-12 19:00:57 +00:00
|
|
|
from .Blackbox import Blackbox
|
2024-07-25 06:21:55 +00:00
|
|
|
from .ChatGot import ChatGot
|
2024-07-08 20:49:38 +00:00
|
|
|
from .Chatgpt4o import Chatgpt4o
|
2024-03-12 01:06:06 +00:00
|
|
|
from .Chatgpt4Online import Chatgpt4Online
|
|
|
|
from .ChatgptFree import ChatgptFree
|
2024-04-18 18:18:51 +00:00
|
|
|
from .Cohere import Cohere
|
2024-07-08 20:49:38 +00:00
|
|
|
from .DDG import DDG
|
2024-03-12 01:06:06 +00:00
|
|
|
from .DeepInfra import DeepInfra
|
2024-04-10 06:14:50 +00:00
|
|
|
from .DeepInfraImage import DeepInfraImage
|
2024-03-12 01:06:06 +00:00
|
|
|
from .FlowGpt import FlowGpt
|
|
|
|
from .FreeChatgpt import FreeChatgpt
|
|
|
|
from .FreeGpt import FreeGpt
|
2024-07-29 22:15:36 +00:00
|
|
|
from .FreeNetfly import FreeNetfly
|
2024-03-12 01:06:06 +00:00
|
|
|
from .GeminiPro import GeminiPro
|
|
|
|
from .GeminiProChat import GeminiProChat
|
2024-07-08 20:49:38 +00:00
|
|
|
from .GigaChat import GigaChat
|
2024-03-12 01:06:06 +00:00
|
|
|
from .GptTalkRu import GptTalkRu
|
|
|
|
from .HuggingChat import HuggingChat
|
|
|
|
from .HuggingFace import HuggingFace
|
2024-07-29 18:59:53 +00:00
|
|
|
from .HuggingFace import HuggingFace
|
2024-03-12 01:06:06 +00:00
|
|
|
from .Koala import Koala
|
|
|
|
from .Liaobots import Liaobots
|
2024-07-29 18:59:53 +00:00
|
|
|
from .LiteIcoding import LiteIcoding
|
2024-04-19 07:27:33 +00:00
|
|
|
from .Llama import Llama
|
2024-04-07 08:36:13 +00:00
|
|
|
from .Local import Local
|
2024-07-31 22:32:50 +00:00
|
|
|
from .MagickPenAsk import MagickPenAsk
|
|
|
|
from .MagickPenChat import MagickPenChat
|
2024-07-28 16:24:48 +00:00
|
|
|
from .Marsyoo import Marsyoo
|
2024-04-20 08:43:53 +00:00
|
|
|
from .MetaAI import MetaAI
|
2024-04-21 05:22:59 +00:00
|
|
|
from .MetaAIAccount import MetaAIAccount
|
2024-05-05 21:38:31 +00:00
|
|
|
from .Ollama import Ollama
|
2024-03-12 01:06:06 +00:00
|
|
|
from .PerplexityLabs import PerplexityLabs
|
|
|
|
from .Pi import Pi
|
2024-06-22 16:13:49 +00:00
|
|
|
from .Pizzagpt import Pizzagpt
|
2024-07-08 20:49:38 +00:00
|
|
|
from .Reka import Reka
|
2024-04-21 20:39:00 +00:00
|
|
|
from .Replicate import Replicate
|
2024-07-08 20:49:38 +00:00
|
|
|
from .ReplicateHome import ReplicateHome
|
2024-07-31 22:32:50 +00:00
|
|
|
from .TeachAnything import TeachAnything
|
2024-03-12 01:06:06 +00:00
|
|
|
from .Vercel import Vercel
|
2024-04-08 05:24:00 +00:00
|
|
|
from .WhiteRabbitNeo import WhiteRabbitNeo
|
2024-03-12 01:06:06 +00:00
|
|
|
from .You import You
|
2023-08-27 15:37:44 +00:00
|
|
|
|
2023-11-16 15:56:23 +00:00
|
|
|
import sys
|
2023-10-09 22:45:29 +00:00
|
|
|
|
2023-11-16 15:56:23 +00:00
|
|
|
__modules__: list = [
|
|
|
|
getattr(sys.modules[__name__], provider) for provider in dir()
|
|
|
|
if not provider.startswith("__")
|
|
|
|
]
|
2024-01-01 16:48:57 +00:00
|
|
|
__providers__: list[ProviderType] = [
|
2023-11-16 15:56:23 +00:00
|
|
|
provider for provider in __modules__
|
|
|
|
if isinstance(provider, type)
|
|
|
|
and issubclass(provider, BaseProvider)
|
2023-10-12 18:28:54 +00:00
|
|
|
]
|
2023-11-16 15:56:23 +00:00
|
|
|
__all__: list[str] = [
|
|
|
|
provider.__name__ for provider in __providers__
|
|
|
|
]
|
2024-01-01 16:48:57 +00:00
|
|
|
__map__: dict[str, ProviderType] = dict([
|
2023-11-16 15:56:23 +00:00
|
|
|
(provider.__name__, provider) for provider in __providers__
|
|
|
|
])
|
|
|
|
|
|
|
|
class ProviderUtils:
|
2024-04-12 19:00:57 +00:00
|
|
|
convert: dict[str, ProviderType] = __map__
|