OpenAICompatibleToolMessage tool result should be an array #4890
Closed
wangfenjin
started this conversation in
Bug Reports
Replies: 1 comment 2 replies
-
|
Hi @wangfenjin; can you send a way to reproduce the error you're seeing? We did not have great test coverage here so I opened a PR adding a test case but it passed without changes to production code with GPT-5-mini. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
tensorzero/tensorzero-core/src/endpoints/openai_compatible/types/chat_completions.rs
Lines 54 to 68 in 437ba75
When LLM assistant requires multiple tool_use concurrently, it will require the following tool result also be an array, with the tool_call_id matches. Otherwise it will return error like:
Currently it's reproducible in gpt-5 and claude 4, grok seems ok with multiple tool sections
Beta Was this translation helpful? Give feedback.
All reactions