OpenaiAccount.py 405 B

123456789101112
  1. from __future__ import annotations
  2. from .OpenaiChat import OpenaiChat
  3. class OpenaiAccount(OpenaiChat):
  4. needs_auth = True
  5. parent = "OpenaiChat"
  6. image_models = ["dall-e-3", "gpt-4", "gpt-4o"]
  7. default_vision_model = "gpt-4o"
  8. default_image_model = "dall-e-3"
  9. models = [*OpenaiChat.fallback_models, default_image_model]
  10. model_aliases = {default_image_model: default_vision_model}