__init__.py 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. from __future__ import annotations
  2. from ..providers.types import BaseProvider, ProviderType
  3. from ..providers.retry_provider import RetryProvider, IterListProvider
  4. from ..providers.base_provider import AsyncProvider, AsyncGeneratorProvider
  5. from ..providers.create_images import CreateImagesProvider
  6. from .deprecated import *
  7. from .selenium import *
  8. from .needs_auth import *
  9. from .not_working import *
  10. from .local import *
  11. from .hf_space import HuggingSpace
  12. from .AIChatFree import AIChatFree
  13. from .Airforce import Airforce
  14. from .AIUncensored import AIUncensored
  15. from .AutonomousAI import AutonomousAI
  16. from .Blackbox import Blackbox
  17. from .BlackboxCreateAgent import BlackboxCreateAgent
  18. from .CablyAI import CablyAI
  19. from .ChatGLM import ChatGLM
  20. from .ChatGpt import ChatGpt
  21. from .ChatGptEs import ChatGptEs
  22. from .ChatGptt import ChatGptt
  23. from .Cloudflare import Cloudflare
  24. from .Copilot import Copilot
  25. from .DarkAI import DarkAI
  26. from .DDG import DDG
  27. from .Free2GPT import Free2GPT
  28. from .FreeGpt import FreeGpt
  29. from .GizAI import GizAI
  30. from .GPROChat import GPROChat
  31. from .ImageLabs import ImageLabs
  32. from .Jmuz import Jmuz
  33. from .Liaobots import Liaobots
  34. from .Mhystical import Mhystical
  35. from .PerplexityLabs import PerplexityLabs
  36. from .Pi import Pi
  37. from .Pizzagpt import Pizzagpt
  38. from .PollinationsAI import PollinationsAI
  39. from .Prodia import Prodia
  40. from .RubiksAI import RubiksAI
  41. from .TeachAnything import TeachAnything
  42. from .You import You
  43. from .Yqcloud import Yqcloud
  44. import sys
  45. __modules__: list = [
  46. getattr(sys.modules[__name__], provider) for provider in dir()
  47. if not provider.startswith("__")
  48. ]
  49. __providers__: list[ProviderType] = [
  50. provider for provider in __modules__
  51. if isinstance(provider, type)
  52. and issubclass(provider, BaseProvider)
  53. ]
  54. __all__: list[str] = [
  55. provider.__name__ for provider in __providers__
  56. ]
  57. __map__: dict[str, ProviderType] = dict([
  58. (provider.__name__, provider) for provider in __providers__
  59. ])
  60. class ProviderUtils:
  61. convert: dict[str, ProviderType] = __map__