fix: Simplify streaming tool call parsing with robust JSON extraction
- Use brace counting for robust JSON extraction - Try JSON first, then fix common issues (single quotes, trailing commas) - Extract final assistant text using regex after tool JSON - Remove complex nested parsing that was failing with escaped quotes
Showing
This diff is collapsed.
Please
register
or
sign in
to comment