Repository navigation
v1.6.6 — Responses Multimodal function_call_output with Tool-Image Attribution (Fixes #3)
Fixes
- Responses
function_call_outputMultimodal Arrays (src/openai-contract.mjs,src/openai-usage.mjs, Fixes #3 — thanks @xiao398008!):- Accepted array
outputonPOST /v1/responsesfunction_call_outputitems containinginput_textandinput_imageparts (matching OpenAI Responses &pi-ai'sconvertToolResultOutput), while strictly rejecting invalid part types (output_text, baretext,logprobs,annotations,parsed) and non-string/non-arrayoutput(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 labeleduserimage turn immediately after each consecutivefunction_call_outputgroup (avoidingPENDING_TOOL_CALLSon parallel tool calls). - Added
function_call_outputinput_imageslots torequestBudget()(256 MiB image budget / sharedMAX_IMAGES = 256cap) andmeasurePromptImagePayload()(258 tokens/image), and deduplicated inline base64 image decoding per request insrc/image-input.mjs+src/openai-contract.mjs(4× → 1× decode). - Verified with offline unit/HTTP tests and live E2E against
gemini-neonusing both the exact Issue #3 payload (200 OK) and parallel multi-image attribution (call_a=red, call_b=blue).
- Accepted array
Internal Refactors
- Consolidated
NATIVE_VERSION(1.135.1.1291),GATEWAY_USER_AGENT(gemini-app2api/1.0), and sharedMODEL_SPECSacross Gateway, Pi, and OpenClaw with drift-prevention tests (5a1370b).
Note:
pi-gemini-app@0.1.9andopenclaw-gemini-app@0.1.5do not require version bumps for this release.
Full Changelog: v1.6.5...v1.6.6