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-04-12 19:00:57 +00:00
|
|
|
from .Aichatos import Aichatos
|
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-03-12 01:06:06 +00:00
|
|
|
from .ChatForAi import ChatForAi
|
|
|
|
from .Chatgpt4Online import Chatgpt4Online
|
|
|
|
from .ChatgptAi import ChatgptAi
|
|
|
|
from .ChatgptFree import ChatgptFree
|
|
|
|
from .ChatgptNext import ChatgptNext
|
|
|
|
from .ChatgptX import ChatgptX
|
2024-04-12 19:00:57 +00:00
|
|
|
from .Cnote import Cnote
|
2024-04-18 18:18:51 +00:00
|
|
|
from .Cohere import Cohere
|
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-04-12 19:00:57 +00:00
|
|
|
from .Feedough import Feedough
|
2024-03-12 01:06:06 +00:00
|
|
|
from .FlowGpt import FlowGpt
|
|
|
|
from .FreeChatgpt import FreeChatgpt
|
|
|
|
from .FreeGpt import FreeGpt
|
2024-03-13 22:29:49 +00:00
|
|
|
from .GigaChat import GigaChat
|
2024-03-12 01:06:06 +00:00
|
|
|
from .GeminiPro import GeminiPro
|
|
|
|
from .GeminiProChat import GeminiProChat
|
|
|
|
from .GptTalkRu import GptTalkRu
|
|
|
|
from .HuggingChat import HuggingChat
|
|
|
|
from .HuggingFace import HuggingFace
|
|
|
|
from .Koala import Koala
|
|
|
|
from .Liaobots import Liaobots
|
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-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-04-21 20:39:00 +00:00
|
|
|
from .Replicate import Replicate
|
2024-04-11 01:34:07 +00:00
|
|
|
from .ReplicateImage import ReplicateImage
|
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
|
2024-04-24 23:06:11 +00:00
|
|
|
from .Reka import Reka
|
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__
|