ollama/openai
Dong Chen 31547a6cd7 openai: split tool results with images instead of adding [img] markers
The [img] placeholders mixed internal markers into tool text: the native
llama-server path sends them as literal text, so an image-only result
gained a text part, and tool output containing [img] or [img-N] moved or
dropped image tags. api.Message cannot carry image positions without
in-band markers, so stop merging tool results that include images.

Text-only tool results, the only array form the Chat Completions spec
allows for tool messages, are still merged into one message (now with a
strings.Builder). Results with images keep the per-part split in order,
which preserves image positions, with the tool call id and name set on
every part.
2026-10-02 20:41:11 -07:00
..
openai.go openai: split tool results with images instead of adding [img] markers 2026-10-02 20:41:11 -07:00
openai_encoding_format_test.go embedding tests: added check against exact base64 string (#12790) 2025-10-28 10:37:20 -07:00
openai_test.go openai: split tool results with images instead of adding [img] markers 2026-10-02 20:41:11 -07:00
responses.go api: expose model thinking levels and defaults (#18473) 2026-09-18 14:10:53 -07:00
responses_compact.go openai: support standalone named function outputs (#18348) 2026-09-09 14:51:50 -07:00
responses_compact_names_test.go openai: support standalone named function outputs (#18348) 2026-09-09 14:51:50 -07:00
responses_compact_test.go openai: support standalone named function outputs (#18348) 2026-09-09 14:51:50 -07:00
responses_test.go openai: support standalone named function outputs (#18348) 2026-09-09 14:51:50 -07:00
thinking_test.go api: expose model thinking levels and defaults (#18473) 2026-09-18 14:10:53 -07:00