__init__.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. from __future__ import annotations
  2. from ..base_provider import BaseProvider, ProviderType
  3. from .retry_provider import RetryProvider
  4. from .base_provider import AsyncProvider, AsyncGeneratorProvider
  5. from .create_images import CreateImagesProvider
  6. from .deprecated import *
  7. from .selenium import *
  8. from .needs_auth import *
  9. from .unfinished import *
  10. from .AiAsk import AiAsk
  11. from .AiChatOnline import AiChatOnline
  12. from .AItianhu import AItianhu
  13. from .Aura import Aura
  14. from .Bestim import Bestim
  15. from .Bing import Bing
  16. from .ChatAnywhere import ChatAnywhere
  17. from .ChatBase import ChatBase
  18. from .ChatForAi import ChatForAi
  19. from .Chatgpt4Online import Chatgpt4Online
  20. from .ChatgptAi import ChatgptAi
  21. from .ChatgptDemo import ChatgptDemo
  22. from .ChatgptDemoAi import ChatgptDemoAi
  23. from .ChatgptFree import ChatgptFree
  24. from .ChatgptLogin import ChatgptLogin
  25. from .ChatgptNext import ChatgptNext
  26. from .ChatgptX import ChatgptX
  27. from .Chatxyz import Chatxyz
  28. from .DeepInfra import DeepInfra
  29. from .FakeGpt import FakeGpt
  30. from .FreeChatgpt import FreeChatgpt
  31. from .FreeGpt import FreeGpt
  32. from .GeekGpt import GeekGpt
  33. from .GeminiProChat import GeminiProChat
  34. from .Gpt6 import Gpt6
  35. from .GPTalk import GPTalk
  36. from .GptChatly import GptChatly
  37. from .GptForLove import GptForLove
  38. from .GptGo import GptGo
  39. from .GptGod import GptGod
  40. from .GptTalkRu import GptTalkRu
  41. from .Hashnode import Hashnode
  42. from .HuggingChat import HuggingChat
  43. from .Koala import Koala
  44. from .Liaobots import Liaobots
  45. from .Llama2 import Llama2
  46. from .OnlineGpt import OnlineGpt
  47. from .PerplexityLabs import PerplexityLabs
  48. from .Phind import Phind
  49. from .Pi import Pi
  50. from .Vercel import Vercel
  51. from .Ylokh import Ylokh
  52. from .You import You
  53. from .BingCreateImages import BingCreateImages
  54. import sys
  55. __modules__: list = [
  56. getattr(sys.modules[__name__], provider) for provider in dir()
  57. if not provider.startswith("__")
  58. ]
  59. __providers__: list[ProviderType] = [
  60. provider for provider in __modules__
  61. if isinstance(provider, type)
  62. and issubclass(provider, BaseProvider)
  63. ]
  64. __all__: list[str] = [
  65. provider.__name__ for provider in __providers__
  66. ]
  67. __map__: dict[str, ProviderType] = dict([
  68. (provider.__name__, provider) for provider in __providers__
  69. ])
  70. class ProviderUtils:
  71. convert: dict[str, ProviderType] = __map__