diff --git a/src/config.rs b/src/config.rs index 8b3cb7d9..3485e5ea 100644 --- a/src/config.rs +++ b/src/config.rs @@ -186,7 +186,7 @@ const ANTHROPIC_PROVIDER_BASE_URL: &str = "https://api.anthropic.com"; const OPENAI_PROVIDER_BASE_URL: &str = "https://api.openai.com"; const OPENROUTER_PROVIDER_BASE_URL: &str = "https://openrouter.ai/api"; const OPENCODE_ZEN_PROVIDER_BASE_URL: &str = "https://opencode.ai/zen"; -const MINIMAX_PROVIDER_BASE_URL: &str = "https://api.minimax.io/anthropic"; +const MINIMAX_PROVIDER_BASE_URL: &str = "https://api.minimax.io"; const MOONSHOT_PROVIDER_BASE_URL: &str = "https://api.moonshot.ai"; const ZHIPU_PROVIDER_BASE_URL: &str = "https://api.z.ai/api/paas/v4"; @@ -1887,7 +1887,7 @@ impl Config { llm.providers .entry("minimax".to_string()) .or_insert_with(|| ProviderConfig { - api_type: ApiType::Anthropic, + api_type: ApiType::OpenAiCompletions, base_url: MINIMAX_PROVIDER_BASE_URL.to_string(), api_key: minimax_key, name: None, @@ -2223,7 +2223,7 @@ impl Config { llm.providers .entry("minimax".to_string()) .or_insert_with(|| ProviderConfig { - api_type: ApiType::Anthropic, + api_type: ApiType::OpenAiCompletions, base_url: MINIMAX_PROVIDER_BASE_URL.to_string(), api_key: minimax_key, name: None, diff --git a/src/llm/model.rs b/src/llm/model.rs index 887bb4f0..1c339fe5 100644 --- a/src/llm/model.rs +++ b/src/llm/model.rs @@ -1167,7 +1167,7 @@ fn parse_anthropic_response( } let choice = OneOrMany::many(assistant_content).map_err(|_| { - tracing::debug!( + tracing::warn!( stop_reason = body["stop_reason"].as_str().unwrap_or("unknown"), content_blocks = content_blocks.len(), raw_content = %body["content"],