feat: add AIHubMix declarative provider (#12997)
This commit is contained in:
@@ -14,6 +14,7 @@ pub(crate) mod declarative_providers {
|
||||
|
||||
expose_declarative_providers!(
|
||||
aigateway,
|
||||
aihubmix,
|
||||
aimlapi,
|
||||
alibaba,
|
||||
atomic_chat,
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "aihubmix",
|
||||
"engine": "openai",
|
||||
"display_name": "AIHubMix",
|
||||
"description": "One API key routes to 400+ models across OpenAI, Anthropic, Google, DeepSeek, Moonshot, Alibaba/Qwen, Zhipu, xAI and more, at provider pass-through pricing.",
|
||||
"api_key_env": "AIHUBMIX_API_KEY",
|
||||
"base_url": "https://aihubmix.com/v1",
|
||||
"headers": {
|
||||
"APP-Code": "FFEW3343"
|
||||
},
|
||||
"catalog_provider_id": "aihubmix",
|
||||
"dynamic_models": true,
|
||||
"models": [
|
||||
{ "name": "claude-sonnet-5-5", "context_limit": 1000000 },
|
||||
{ "name": "gpt-6.1-sol", "context_limit": 1050000 },
|
||||
{ "name": "claude-opus-5-5", "context_limit": 1000000 },
|
||||
{ "name": "gemini-3.8-flash", "context_limit": 1048576 },
|
||||
{ "name": "deepseek-v4-pro", "context_limit": 1000000 },
|
||||
{ "name": "kimi-k3", "context_limit": 1048576 },
|
||||
{ "name": "qwen3.8-max", "context_limit": 991000 },
|
||||
{ "name": "glm-5.3", "context_limit": 1000000 },
|
||||
{ "name": "grok-4.7", "context_limit": 500000 }
|
||||
],
|
||||
"supports_streaming": true,
|
||||
"model_doc_link": "https://aihubmix.com/models",
|
||||
"setup_steps": [
|
||||
"Sign in to https://aihubmix.com",
|
||||
"Create an API key in your AIHubMix console",
|
||||
"Copy the key and paste it above"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user