Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/llm/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading