fix(onboard): refresh MiniMax defaults and endpoint (#299)
This commit is contained in:
parent
3fd901a5ec
commit
8882746ced
6 changed files with 168 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue