fix: carry RequestTimeout in MiniMax migration and add normalizeModel test
This commit is contained in:
parent
7b363820dd
commit
206dae9bd0
1 changed files with 3 additions and 0 deletions
|
|
@ -383,6 +383,9 @@ func TestNormalizeModel_UsesAPIBase(t *testing.T) {
|
|||
if got := normalizeModel("openrouter/auto", "https://openrouter.ai/api/v1"); got != "openrouter/auto" {
|
||||
t.Fatalf("normalizeModel(openrouter) = %q, want %q", got, "openrouter/auto")
|
||||
}
|
||||
if got := normalizeModel("minimax/MiniMax-M2.5", "https://api.minimax.chat/v1"); got != "MiniMax-M2.5" {
|
||||
t.Fatalf("normalizeModel(minimax) = %q, want %q", got, "MiniMax-M2.5")
|
||||
}
|
||||
}
|
||||
|
||||
func TestProvider_RequestTimeoutDefault(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue