You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bugfix] Fix harmony library format mismatch for streaming tool calls
This commit addresses an issue where the harmony library passes data to the model
in a different format than what the model outputs, causing the model to become
confused and stop responding when using /v1/chat/completions with stream and tools.
The fix updates the message format to match the model's expected output:
- Move recipient info from assistant start tag to channel tag
- Change content type from 'json' to '<|constrain|>json'
- Replace <|end|> token with <|call|> token for tool calls
This is a temporary fix until the underlying format mismatch is properly resolved.
Signed-off-by: kyt <[email protected]>
0 commit comments