Skip to content

Fix DeepSeek interleaved tool-call streaming - #7

Merged
SmartAI merged 1 commit into
mainfrom
fix/deepseek-parallel-tool-streams
Sep 9, 2026
Merged

Fix DeepSeek interleaved tool-call streaming#7
SmartAI merged 1 commit into
mainfrom
fix/deepseek-parallel-tool-streams

Conversation

@SmartAI

@SmartAI SmartAI commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Buffer OpenAI-compatible streamed tool calls by index instead of rejecting a second call.
  • Emit completed calls in index order for sequential execution without mixing arguments.
  • Keep requesting single calls and retain validation for incomplete, changed, or duplicate identities.
  • Add a local HTTP end-to-end regression that writes then reads a file using interleaved calls.

Validation

  • Reproduced the original compatibility error before the fix.
  • Isolated PR checkout: 160 tests passed, 1 skipped.
  • Focused Ruff and mypy checks passed.
  • No live DeepSeek API verification.

Behavior note

Tool-call events are emitted when the tool-call response finishes; text continues streaming as before.

@SmartAI
SmartAI merged commit 22c80d3 into main Sep 9, 2026
2 checks passed
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.

1 participant