Skip to content

fix(model): serialize assistant tool calls with empty content#264

Open
snvtac wants to merge 1 commit into
OpenBMB:mainfrom
snvtac:snvtac/263-openai-streaming-tool-call-content
Open

fix(model): serialize assistant tool calls with empty content#264
snvtac wants to merge 1 commit into
OpenBMB:mainfrom
snvtac:snvtac/263-openai-streaming-tool-call-content

Conversation

@snvtac

@snvtac snvtac commented Jun 20, 2026

Copy link
Copy Markdown

Summary

  • Serialize assistant messages that contain tool calls but no text with explicit content: "" for OpenAI-compatible requests.
  • Preserve the existing thinking-block behavior and request repair path.
  • Add a regression test for the streaming multi-turn tool-call history shape.

Fixes #263

Testing

  • npm test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(model): OpenAI-compatible streaming fails after tool calls when assistant content is omitted

1 participant