DeepSeek.py 439 B

12345678910111213141516
  1. from __future__ import annotations
  2. from .OpenaiAPI import OpenaiAPI
  3. class DeepSeek(OpenaiAPI):
  4. label = "DeepSeek"
  5. url = "https://platform.deepseek.com"
  6. login_url = "https://platform.deepseek.com/api_keys"
  7. working = True
  8. api_base = "https://api.deepseek.com"
  9. needs_auth = True
  10. supports_stream = True
  11. supports_message_history = True
  12. default_model = "deepseek-chat"
  13. fallback_models = [default_model]