feat: add support for Router provider and enhance command handling

This commit is contained in:
asepharyana
2026-07-12 01:43:57 +07:00
parent a8fee71e06
commit 9f272d5973
5 changed files with 48 additions and 7 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
use crate::model::settings::Settings;
pub const PROVIDERS: &[&str] = &["Zen API", "OpenAI"];
pub const PROVIDERS: &[&str] = &["Zen API", "Router", "OpenAI"];
pub fn set_provider(settings: &mut Settings, provider: &str) {
settings.provider = match provider {
"Zen API" => "zen".to_string(),
"Router" => "router".to_string(),
"OpenAI" => "openai".to_string(),
_ => "zen".to_string(),
};