Tool call errors with Expected 'content' to be a string or an array
#13471
Labels
bug
Something isn't working
Name and Version
version: 5350 (c104023)
built with Apple clang version 17.0.0 (clang-1700.0.13.3) for arm64-apple-darwin24.4.0
Operating systems
Mac
GGML backends
Metal
Hardware
M2 Max
Models
Tested with
gemma-3-4b-it-qat
andinternvl3-8b-instruct
Problem description & steps to reproduce
Tool call errors with
Expected 'content' to be a string or an array
.Mainly because llama.cpp server responds with
"content": null,
in the assistant tool call response, which when sent back to the server with tool call response errors.If I change the
"content": null,
to"content": "",
it works.Repro:
Final Req (this errors),
The text was updated successfully, but these errors were encountered: