__init__.py 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 .needs_auth import *
  8. from .unfinished import *
  9. from .selenium import *
  10. from .Aura import Aura
  11. from .AiAsk import AiAsk
  12. from .Aichat import Aichat
  13. from .AiChatOnline import AiChatOnline
  14. from .AItianhu import AItianhu
  15. from .AItianhuSpace import AItianhuSpace
  16. from .Berlin import Berlin
  17. from .Bing import Bing
  18. from .ChatAnywhere import ChatAnywhere
  19. from .ChatBase import ChatBase
  20. from .ChatForAi import ChatForAi
  21. from .Chatgpt4Online import Chatgpt4Online
  22. from .ChatgptAi import ChatgptAi
  23. from .ChatgptDemo import ChatgptDemo
  24. from .ChatgptDemoAi import ChatgptDemoAi
  25. from .ChatgptFree import ChatgptFree
  26. from .ChatgptLogin import ChatgptLogin
  27. from .ChatgptNext import ChatgptNext
  28. from .ChatgptX import ChatgptX
  29. from .Chatxyz import Chatxyz
  30. from .DeepInfra import DeepInfra
  31. from .FakeGpt import FakeGpt
  32. from .FreeChatgpt import FreeChatgpt
  33. from .FreeGpt import FreeGpt
  34. from .GeekGpt import GeekGpt
  35. from .GeminiProChat import GeminiProChat
  36. from .Gpt6 import Gpt6
  37. from .GPTalk import GPTalk
  38. from .GptChatly import GptChatly
  39. from .GptForLove import GptForLove
  40. from .GptGo import GptGo
  41. from .GptGod import GptGod
  42. from .GptTalkRu import GptTalkRu
  43. from .Hashnode import Hashnode
  44. from .Koala import Koala
  45. from .Liaobots import Liaobots
  46. from .Llama2 import Llama2
  47. from .MyShell import MyShell
  48. from .OnlineGpt import OnlineGpt
  49. from .Opchatgpts import Opchatgpts
  50. from .PerplexityAi import PerplexityAi
  51. from .Phind import Phind
  52. from .Pi import Pi
  53. from .TalkAi import TalkAi
  54. from .Vercel import Vercel
  55. from .Ylokh import Ylokh
  56. from .You import You
  57. from .Yqcloud import Yqcloud
  58. from .Bestim import Bestim
  59. import sys
  60. __modules__: list = [
  61. getattr(sys.modules[__name__], provider) for provider in dir()
  62. if not provider.startswith("__")
  63. ]
  64. __providers__: list[ProviderType] = [
  65. provider for provider in __modules__
  66. if isinstance(provider, type)
  67. and issubclass(provider, BaseProvider)
  68. ]
  69. __all__: list[str] = [
  70. provider.__name__ for provider in __providers__
  71. ]
  72. __map__: dict[str, ProviderType] = dict([
  73. (provider.__name__, provider) for provider in __providers__
  74. ])
  75. class ProviderUtils:
  76. convert: dict[str, ProviderType] = __map__