Skip to content
Discussion options

You must be logged in to vote

yeah, Zoo only counts structured tool calls. if the call comes back as text inside content, it's treated as "no tools used" and you get exactly that error.

the OpenAI-compatible provider streams by default (you can turn it off in the profile, it's openAiStreamingEnabled under the hood) and it reads delta.tool_calls from each chunk, see openai.ts. since your gateway fakes the stream anyway, this shape works:

data: {"choices":[{"index":0,"delta":{"role":"assistant","tool_calls":[{"index":0,"id":"call_1","type":"function","function":{"name":"list_files","arguments":"{\"path\":\".\"}"}}]},"finish_reason":null}]}

data: {"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}]}

data: […

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rossoow
Comment options

Answer selected by rossoow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants