fix(provider): correct MiniMax M3 thinking variants (#38330)
This commit is contained in:
@@ -693,6 +693,12 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
|
||||
model.api.id.toLowerCase().includes("minimax-m3") &&
|
||||
["@ai-sdk/anthropic", "@ai-sdk/openai-compatible"].includes(model.api.npm)
|
||||
) {
|
||||
if (["nvidia", "lilac"].includes(model.providerID)) {
|
||||
return {
|
||||
none: { chat_template_kwargs: { thinking_mode: "disabled" } },
|
||||
thinking: { chat_template_kwargs: { thinking_mode: "enabled" } },
|
||||
}
|
||||
}
|
||||
return {
|
||||
none: { thinking: { type: "disabled" } },
|
||||
thinking: { thinking: { type: "adaptive" } },
|
||||
|
||||
Reference in New Issue
Block a user