Skip to content

Commit e370f86

Browse files
committed
fix(gemini-executor): uppercase responseModalities
1 parent 7f266aa commit e370f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/runtime/executor/gemini_executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ func fixGeminiImageAspectRatio(modelName string, rawJSON []byte) []byte {
494494
}
495495

496496
rawJSON, _ = sjson.SetRawBytes(rawJSON, "contents.0.parts", []byte(newPartsJson))
497-
rawJSON, _ = sjson.SetRawBytes(rawJSON, "generationConfig.responseModalities", []byte(`["Image", "Text"]`))
497+
rawJSON, _ = sjson.SetRawBytes(rawJSON, "generationConfig.responseModalities", []byte(`["IMAGE", "TEXT"]`))
498498
}
499499
}
500500
rawJSON, _ = sjson.DeleteBytes(rawJSON, "generationConfig.imageConfig")

0 commit comments

Comments
 (0)