feat: vertexai websearch support (#8260)

This commit is contained in:
SuYao 2025-07-18 10:09:41 +08:00 committed by GitHub
parent e68eea5684
commit 7c268088d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2708,7 +2708,7 @@ export function isWebSearchModel(model: Model): boolean {
}
}
if (provider.id === 'gemini' || provider?.type === 'gemini') {
if (provider.id === 'gemini' || provider?.type === 'gemini' || provider.type === 'vertexai') {
return GEMINI_SEARCH_REGEX.test(baseName)
}