fix(executor): remove safetySettings from payload for Gemini requests

This commit is contained in:
Luis Pater
2025-11-01 16:53:48 +08:00
parent fd2b23592e
commit 89b0d53a09
2 changed files with 2 additions and 0 deletions

View File

@@ -418,6 +418,7 @@ func (e *GeminiCLIExecutor) CountTokens(ctx context.Context, auth *cliproxyauth.
}
payload = deleteJSONField(payload, "project")
payload = deleteJSONField(payload, "model")
payload = deleteJSONField(payload, "request.safetySettings")
payload = util.StripThinkingConfigIfUnsupported(req.Model, payload)
payload = fixGeminiCLIImageAspectRatio(attemptModel, payload)