mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 01:06:37 +08:00
fix: extend model check in GetModelModalities function to include additional models
This commit is contained in:
parent
5f6b515bb3
commit
e6d70c8bf7
@ -31,7 +31,10 @@ func GetModelModalities(model string) []string {
|
||||
}
|
||||
|
||||
// Until 2025-03-26, the following models do not accept the responseModalities field
|
||||
if model == "gemini-2.5-pro-exp-03-25" {
|
||||
if model == "gemini-2.5-pro-exp-03-25" ||
|
||||
model == "aqa" ||
|
||||
strings.HasPrefix(model, "gemma") ||
|
||||
strings.HasPrefix(model, "text-embed") {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user