diff --git a/README.md b/README.md index 3b589ae..8ecac3b 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,7 @@ If needed, set `VITE_API_BASE_URL` for the frontend. ## 🔐 Provider Configuration -The backend supports multiple providers, including `minimax`. +The backend supports multiple providers, including `minimax` and `novita`. Configuration is loaded from: 1. environment variables defined in `backend/app/core/settings.py` diff --git a/backend/app/core/settings.py b/backend/app/core/settings.py index 26720e0..da2c96e 100644 --- a/backend/app/core/settings.py +++ b/backend/app/core/settings.py @@ -219,6 +219,14 @@ class Settings(BaseModel): timeout=120, extra_headers={} ), + "novita": ProviderConfig( + base_url_env="NOVITA_BASE_URL", + api_key_env="NOVITA_API_KEY", + default_model="moonshotai/kimi-k3", + api_format="openai", + timeout=120, + extra_headers={} + ), }) # Runtime overrides (set via API, persisted to JSON) @@ -383,6 +391,7 @@ def _get_default_base_url(self, provider_name: str) -> str: "qwen": "https://dashscope.aliyuncs.com/compatible-mode/v1", "bigmodel": "https://open.bigmodel.cn/api/paas/v4", "minimax": "https://api.minimaxi.com/anthropic", + "novita": "https://api.novita.ai/openai/v1", } return defaults.get(provider_name, "")