__init__.py 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 .FreeGpt import FreeGpt
  33. from .Gpt6 import Gpt6
  34. from .GPTalk import GPTalk
  35. from .GptChatly import GptChatly
  36. from .GptForLove import GptForLove
  37. from .GptGo import GptGo
  38. from .GptGod import GptGod
  39. from .GptTalkRu import GptTalkRu
  40. from .Hashnode import Hashnode
  41. from .Koala import Koala
  42. from .Liaobots import Liaobots
  43. from .Llama2 import Llama2
  44. from .MyShell import MyShell
  45. from .OnlineGpt import OnlineGpt
  46. from .Opchatgpts import Opchatgpts
  47. from .PerplexityAi import PerplexityAi
  48. from .Phind import Phind
  49. from .Pi import Pi
  50. from .TalkAi import TalkAi
  51. from .Vercel import Vercel
  52. from .Ylokh import Ylokh
  53. from .You import You
  54. from .Yqcloud import Yqcloud
  55. from .GeekGpt import GeekGpt
  56. from .Bestim import Bestim
  57. import sys
  58. __modules__: list = [
  59. getattr(sys.modules[__name__], provider) for provider in dir()
  60. if not provider.startswith("__")
  61. ]
  62. __providers__: list[ProviderType] = [
  63. provider for provider in __modules__
  64. if isinstance(provider, type)
  65. and issubclass(provider, BaseProvider)
  66. ]
  67. __all__: list[str] = [
  68. provider.__name__ for provider in __providers__
  69. ]
  70. __map__: dict[str, ProviderType] = dict([
  71. (provider.__name__, provider) for provider in __providers__
  72. ])
  73. class ProviderUtils:
  74. convert: dict[str, ProviderType] = __map__