Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(antigravity): add image passthrough for Claude models

AndrewDragonIVafefee2357a2
diff --git a/open-sse/translator/request/openai-to-gemini.ts b/open-sse/translator/request/openai-to-gemini.ts
index 8d4d2b4047..bd54d43bd4 100644
--- a/open-sse/translator/request/openai-to-gemini.ts
+++ b/open-sse/translator/request/openai-to-gemini.ts
@@ -432,6 +432,13 @@ function wrapInCloudCodeEnvelopeForClaude(model, claudeRequest, credentials = nu
for (const block of msg.content) {
if (block.type === "text") {
parts.push({ text: block.text });
+ } else if (block.type === "image" && block.source) {
+ parts.push({
+ inlineData: {
+ mimeType: block.source.media_type,
+ data: block.source.data,
+ },
+ });
} else if (block.type === "tool_use") {
parts.push({
functionCall: {