mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-30 17:31:47 +00:00
fix: 在Vertex Adapter过滤content[].part[].functionResponse.id
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user