fix: 模型设置增加针对Vertex渠道过滤content[].part[].functionResponse.id的选项,默认启用

This commit is contained in:
Seefs
2025-12-21 17:09:49 +08:00
parent c2a6193497
commit 219b13af70
12 changed files with 86 additions and 1 deletions
+5
View File
@@ -162,6 +162,11 @@ func GeminiHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *typ
}
}
// remove disabled fields for Vertex AI
if info.ChannelType == constant.ChannelTypeVertexAi {
jsonData, _ = relaycommon.RemoveGeminiDisabledFields(jsonData)
}
logger.LogDebug(c, "Gemini request body: "+string(jsonData))
requestBody = bytes.NewReader(jsonData)