fix: 在Vertex Adapter过滤content[].part[].functionResponse.id

This commit is contained in:
Seefs
2025-12-21 17:22:04 +08:00
parent 5a64ae2a29
commit 28f7a4feef
2 changed files with 33 additions and 5 deletions

View File

@@ -162,11 +162,6 @@ 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)