Skip to content

fix: add DeepSeek tool calling prompt#26496

Open
HNGM-HP wants to merge 1 commit intoanomalyco:devfrom
HNGM-HP:fix/deepseek-tool-call-prompt
Open

fix: add DeepSeek tool calling prompt#26496
HNGM-HP wants to merge 1 commit intoanomalyco:devfrom
HNGM-HP:fix/deepseek-tool-call-prompt

Conversation

@HNGM-HP
Copy link
Copy Markdown

@HNGM-HP HNGM-HP commented May 9, 2026

Issue for this PR

Closes #26498

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a DeepSeek-specific prompt section for tool-call argument formatting.

DeepSeek models can be sensitive to JSON argument shape. The new prompt makes optional-field omission, array/object types, raw path values, paired parameters, validation-error recovery, and tool selection explicit.

The prompt is only appended when model.api.id contains deepseek, so other providers keep the existing behavior.

How did you verify your code works?

  • bun install --frozen-lockfile
  • bun run typecheck

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels May 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels May 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

DeepSeek tool calls can use malformed argument JSON

1 participant