fix 404 issue for model = nvidia/nvidia/* , like nvidia/nvidia/nemotron-3-nano-30b-a3b
This commit is contained in:
parent
70f20f4603
commit
bf732af8bb
1 changed files with 3 additions and 1 deletions
|
|
@ -234,7 +234,9 @@ func normalizeModel(model, apiBase string) string {
|
||||||
return model
|
return model
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.Contains(strings.ToLower(apiBase), "openrouter.ai") {
|
lowerBase := strings.ToLower(apiBase)
|
||||||
|
if strings.Contains(lowerBase, "openrouter.ai") ||
|
||||||
|
strings.Contains(lowerBase, "nvidia.com") {
|
||||||
return model
|
return model
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue