Assistant history messages that carry tool_calls but empty text previously omitted the content field entirely on the wire. Strict local OpenAI-compatible engines (vLLM / Xinference serving Qwen-family Jinja chat templates) treat the missing field as undefined/null and crash while rendering the next turn, surfacing as "I'm sorry, I was unable to generate a response". Always serialize "content": "" for assistant tool-call turns. The empty string is accepted by every standard OpenAI-compatible endpoint. Fixes #1487 Co-authored-by: LuckVd <LuckVd@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| client.go | ||
| golden_test.go | ||
| request.go | ||