Skip to content

v1.6.6 — Responses Multimodal function_call_output with Tool-Image Attribution (Fixes #3)

Choose a tag to compare

@ShawTim ShawTim released this 22 Nov 11:58
· 37 commits to main since this release

Fixes

  • Responses function_call_output Multimodal Arrays (src/openai-contract.mjs, src/openai-usage.mjs, Fixes #3 — thanks @xiao398008!):
    • Accepted array output on POST /v1/responses function_call_output items containing input_text and input_image parts (matching OpenAI Responses & pi-ai's convertToolResultOutput), while strictly rejecting invalid part types (output_text, bare text, logprobs, annotations, parsed) and non-string/non-array output (INVALID_TEXT).
    • Preserved exact interleaved text positions and parallel tool-call attribution by inserting [Tool image N for <call_id>] markers in each tool result and flushing deferred tool images together as a labeled user image turn immediately after each consecutive function_call_output group (avoiding PENDING_TOOL_CALLS on parallel tool calls).
    • Added function_call_output input_image slots to requestBudget() (256 MiB image budget / shared MAX_IMAGES = 256 cap) and measurePromptImagePayload() (258 tokens/image), and deduplicated inline base64 image decoding per request in src/image-input.mjs + src/openai-contract.mjs (4× → 1× decode).
    • Verified with offline unit/HTTP tests and live E2E against gemini-neon using both the exact Issue #3 payload (200 OK) and parallel multi-image attribution (call_a=red, call_b=blue).

Internal Refactors

  • Consolidated NATIVE_VERSION (1.135.1.1291), GATEWAY_USER_AGENT (gemini-app2api/1.0), and shared MODEL_SPECS across Gateway, Pi, and OpenClaw with drift-prevention tests (5a1370b).

Note: pi-gemini-app@0.1.9 and openclaw-gemini-app@0.1.5 do not require version bumps for this release.

Full Changelog: v1.6.5...v1.6.6