fix: extend model check in GetModelModalities function to include additional models

This commit is contained in:
Laisky.Cai 2025-03-26 03:54:07 +00:00
parent 5f6b515bb3
commit e6d70c8bf7

View File

@ -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
}