fix(onboard): refresh MiniMax defaults and endpoint (#299)

This commit is contained in:
Chummy 2026-02-16 23:40:44 +08:00 committed by GitHub
parent 3fd901a5ec
commit 8882746ced
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 168 additions and 7 deletions

View file

@ -584,7 +584,7 @@ mod tests {
make_provider("Venice", "https://api.venice.ai", None),
make_provider("Moonshot", "https://api.moonshot.cn", None),
make_provider("GLM", "https://open.bigmodel.cn", None),
make_provider("MiniMax", "https://api.minimax.chat", None),
make_provider("MiniMax", "https://api.minimaxi.com/v1", None),
make_provider("Groq", "https://api.groq.com/openai", None),
make_provider("Mistral", "https://api.mistral.ai", None),
make_provider("xAI", "https://api.x.ai", None),
@ -793,6 +793,16 @@ mod tests {
);
}
#[test]
fn chat_completions_url_minimax() {
// MiniMax OpenAI-compatible endpoint requires /v1 base path.
let p = make_provider("minimax", "https://api.minimaxi.com/v1", None);
assert_eq!(
p.chat_completions_url(),
"https://api.minimaxi.com/v1/chat/completions"
);
}
#[test]
fn chat_completions_url_glm() {
// GLM (BigModel) uses /api/paas/v4 base path