fix: 模型设置增加针对Vertex渠道过滤content[].part[].functionResponse.id的选项,默认启用
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user