fix: strip functionCall/functionResponse id and synthetic thoughtSignature for Vertex AI (closes #388) (#414)

This commit is contained in:
Anurag Saxena
2026-03-27 10:46:47 +07:00
committed by GitHub
parent a6c764d772
commit e3a7733a08
6 changed files with 55 additions and 2 deletions
@@ -15,7 +15,7 @@ export function translateNonStreamingResponse(responseBody, targetFormat, source
if (targetFormat === sourceFormat || targetFormat === FORMATS.OPENAI) return responseBody;
// Gemini / Antigravity
if (targetFormat === FORMATS.GEMINI || targetFormat === FORMATS.ANTIGRAVITY || targetFormat === FORMATS.GEMINI_CLI) {
if (targetFormat === FORMATS.GEMINI || targetFormat === FORMATS.ANTIGRAVITY || targetFormat === FORMATS.GEMINI_CLI || targetFormat === FORMATS.VERTEX) {
const response = responseBody.response || responseBody;
if (!response?.candidates?.[0]) return responseBody;