feat(model): add MiniMax provider prefix for cross-platform model normalization (#463)
This commit is contained in:
@@ -34,6 +34,7 @@ export function resolveClaudeFamilyAlias(model: string): string {
|
||||
* "claude-sonnet-4-6" -> "anthropic/claude-sonnet-4-6"
|
||||
* "gpt-5.4" -> "openai/gpt-5.4"
|
||||
* "gemini-2.0" -> "google/gemini-2.0"
|
||||
* "minimax-m2.7" -> "minimax/minimax-m2.7"
|
||||
* "anthropic/foo" -> "anthropic/foo" (unchanged)
|
||||
*/
|
||||
export function addProviderPrefix(model: string): string {
|
||||
@@ -42,6 +43,7 @@ export function addProviderPrefix(model: string): string {
|
||||
if (/^(gpt-|o1-|o3-)/.test(model)) return `openai/${model}`
|
||||
if (/^gemini-/.test(model)) return `google/${model}`
|
||||
if (/^qwen-/.test(model)) return `qwen/${model}`
|
||||
if (/^minimax-/i.test(model)) return `minimax/${model}`
|
||||
return `anthropic/${model}`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user