__init__.py 2.5 KB

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