feat: add Novita AI as declarative provider (#8432)

Signed-off-by: Alex-wuhu <yanglongwei06@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alex
2026-04-16 20:54:31 +08:00
committed by GitHub
parent 93e6f8d521
commit fd93865951
3 changed files with 78 additions and 0 deletions
@@ -48,6 +48,7 @@ pub fn map_provider_name(provider: &str) -> &str {
"gcp_vertex_ai" => "google-vertex",
"gemini_oauth" => "google",
"zhipu" => "zhipuai",
"novita" => "novita-ai",
_ => provider,
}
}
@@ -0,0 +1,37 @@
{
"name": "novita",
"engine": "openai",
"display_name": "Novita AI",
"description": "90+ open-source models with OpenAI-compatible API and competitive pricing",
"api_key_env": "NOVITA_API_KEY",
"base_url": "https://api.novita.ai/openai/chat/completions",
"catalog_provider_id": "novita-ai",
"models": [
{
"name": "moonshotai/kimi-k2.5",
"context_limit": 262144,
"max_tokens": 262144
},
{
"name": "minimax/minimax-m2.7",
"context_limit": 204800,
"max_tokens": 131072
},
{
"name": "zai-org/glm-5.1",
"context_limit": 204800,
"max_tokens": 131072
},
{
"name": "deepseek/deepseek-v3.2",
"context_limit": 163840,
"max_tokens": 65536
},
{
"name": "google/gemma-4-31b-it",
"context_limit": 262144,
"max_tokens": 131072
}
],
"supports_streaming": true
}