mirror of
https://github.com/katanemo/plano.git
synced 2026-07-11 16:12:13 +02:00
add Meta Model API provider for Muse Spark 1.1 (#984)
This commit is contained in:
parent
dc522d8bfc
commit
9c2a56e042
4 changed files with 20 additions and 4 deletions
|
|
@ -10,7 +10,8 @@
|
|||
// Usage:
|
||||
// Optional: OPENAI_API_KEY, ANTHROPIC_API_KEY, MISTRAL_API_KEY,
|
||||
// DEEPSEEK_API_KEY, GROK_API_KEY, DASHSCOPE_API_KEY,
|
||||
// MOONSHOT_API_KEY, ZHIPU_API_KEY, MIMO_API_KEY, GOOGLE_API_KEY
|
||||
// MOONSHOT_API_KEY, ZHIPU_API_KEY, MIMO_API_KEY, GOOGLE_API_KEY,
|
||||
// META_MODELS_API_KEY
|
||||
// Optional: AWS CLI configured for Amazon Bedrock models
|
||||
// cargo run --bin fetch_models --features model-fetch
|
||||
|
||||
|
|
@ -380,6 +381,12 @@ fn fetch_all_models(
|
|||
"https://api.xiaomimimo.com/v1/models",
|
||||
"xiaomi",
|
||||
),
|
||||
(
|
||||
"meta",
|
||||
"META_MODELS_API_KEY",
|
||||
"https://api.meta.ai/v1/models",
|
||||
"meta",
|
||||
),
|
||||
];
|
||||
|
||||
// Helper that records the outcome of a fetch attempt and only mutates
|
||||
|
|
|
|||
|
|
@ -122,6 +122,8 @@ providers:
|
|||
- google/deep-research-max-preview-04-2026
|
||||
- google/deep-research-preview-04-2026
|
||||
- google/deep-research-pro-preview-12-2025
|
||||
meta:
|
||||
- meta/muse-spark-1.1
|
||||
minimax:
|
||||
- minimax/MiniMax-M3
|
||||
mistralai:
|
||||
|
|
@ -392,6 +394,6 @@ providers:
|
|||
- z-ai/glm-5-turbo
|
||||
- z-ai/glm-5.1
|
||||
metadata:
|
||||
total_providers: 13
|
||||
total_models: 375
|
||||
last_updated: 2026-06-09T22:50:12.186709+00:00
|
||||
total_providers: 15
|
||||
total_models: 377
|
||||
last_updated: 2026-07-09T19:48:06.553850+00:00
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ pub enum ProviderId {
|
|||
OpenRouter,
|
||||
Astraflow,
|
||||
AstraflowCN,
|
||||
Meta,
|
||||
Minimax,
|
||||
}
|
||||
|
||||
|
|
@ -86,6 +87,7 @@ impl TryFrom<&str> for ProviderId {
|
|||
"openrouter" => Ok(ProviderId::OpenRouter),
|
||||
"astraflow" => Ok(ProviderId::Astraflow),
|
||||
"astraflow_cn" => Ok(ProviderId::AstraflowCN),
|
||||
"meta" => Ok(ProviderId::Meta),
|
||||
"minimax" => Ok(ProviderId::Minimax),
|
||||
_ => Err(format!("Unknown provider: {}", value)),
|
||||
}
|
||||
|
|
@ -113,6 +115,7 @@ impl ProviderId {
|
|||
ProviderId::Qwen => "qwen",
|
||||
ProviderId::ChatGPT => "chatgpt",
|
||||
ProviderId::DigitalOcean => "digitalocean",
|
||||
ProviderId::Meta => "meta",
|
||||
ProviderId::Minimax => "minimax",
|
||||
ProviderId::Astraflow | ProviderId::AstraflowCN => return Vec::new(),
|
||||
_ => return Vec::new(),
|
||||
|
|
@ -185,6 +188,7 @@ impl ProviderId {
|
|||
| ProviderId::ChatGPT
|
||||
| ProviderId::Astraflow
|
||||
| ProviderId::AstraflowCN
|
||||
| ProviderId::Meta
|
||||
| ProviderId::Minimax,
|
||||
SupportedAPIsFromClient::AnthropicMessagesAPI(_),
|
||||
) => SupportedUpstreamAPIs::OpenAIChatCompletions(OpenAIApi::ChatCompletions),
|
||||
|
|
@ -210,6 +214,7 @@ impl ProviderId {
|
|||
| ProviderId::ChatGPT
|
||||
| ProviderId::Astraflow
|
||||
| ProviderId::AstraflowCN
|
||||
| ProviderId::Meta
|
||||
| ProviderId::Minimax,
|
||||
SupportedAPIsFromClient::OpenAIChatCompletions(_),
|
||||
) => SupportedUpstreamAPIs::OpenAIChatCompletions(OpenAIApi::ChatCompletions),
|
||||
|
|
@ -283,6 +288,7 @@ impl Display for ProviderId {
|
|||
ProviderId::OpenRouter => write!(f, "openrouter"),
|
||||
ProviderId::Astraflow => write!(f, "astraflow"),
|
||||
ProviderId::AstraflowCN => write!(f, "astraflow_cn"),
|
||||
ProviderId::Meta => write!(f, "meta"),
|
||||
ProviderId::Minimax => write!(f, "minimax"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue