diff --git a/src/config.rs b/src/config.rs index d67ef6a27..289669eeb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -230,7 +230,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 MINIMAX_CN_PROVIDER_BASE_URL: &str = "https://api.minimaxi.com/anthropic"; const MOONSHOT_PROVIDER_BASE_URL: &str = "https://api.moonshot.ai"; @@ -2074,7 +2074,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, @@ -2455,7 +2455,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 2d52e914b..9664cab40 100644 --- a/src/llm/model.rs +++ b/src/llm/model.rs @@ -1239,7 +1239,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"],