Skip to content

Preserve DeepSeek content refusals and usage - #5

Merged
andyrewlee merged 2 commits into
mainfrom
fix/messages-refusal
Dec 2, 2026
Merged

andyrewlee merged 2 commits into
mainfrom
fix/messages-refusal

Conversation

@andyrewlee

Copy link
Copy Markdown
Contributor

Changes

  • Use DeepSeek SDK 0.2.2-rc.5 and its official native tool executor.
  • Resolve a completed Messages content refusal as a durable outcome with a safe message and the provider’s final token counts.
  • Keep refused draft text, provider explanations, and refused tool calls out of subsequent model history.
  • Prepare version 0.0.3 for the repository’s GitHub release workflow.

Verification

  • Reproduced the generic failed outcome on main using DeepSeek’s documented refusal stream.
  • Passed all seven package tests, including real SQLite Workerd restart for complete text and tool refusals, an incomplete refusal, and ordinary parked-tool recovery.
  • Installed the 0.0.3 tarball in a clean consumer. Both Node and Bun passed the package checks.

DeepSeek Messages streaming and usage

@andyrewlee
andyrewlee merged commit d4915ec into main Dec 2, 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