feat: add OpenRouter as a first-class LLM provider (fixes #612)

This commit is contained in:
octo-patch 2026-04-11 13:47:30 +08:00
parent 128059e7c1
commit f4571702e2
4 changed files with 13 additions and 2 deletions

View file

@ -370,6 +370,8 @@ pub enum LlmProviderType {
AmazonBedrock,
#[serde(rename = "plano")]
Plano,
#[serde(rename = "openrouter")]
OpenRouter,
}
impl Display for LlmProviderType {
@ -391,6 +393,7 @@ impl Display for LlmProviderType {
LlmProviderType::Qwen => write!(f, "qwen"),
LlmProviderType::AmazonBedrock => write!(f, "amazon_bedrock"),
LlmProviderType::Plano => write!(f, "plano"),
LlmProviderType::OpenRouter => write!(f, "openrouter"),
}
}
}