Skip to content

fix: normalize nested args in DeepSeek DSML#1654

Merged
AlpinDale merged 1 commit into
mainfrom
fix/dsml-nested-args
Apr 27, 2026
Merged

fix: normalize nested args in DeepSeek DSML#1654
AlpinDale merged 1 commit into
mainfrom
fix/dsml-nested-args

Conversation

@AlpinDale

Copy link
Copy Markdown
Collaborator

DeepSeek-V4 Flash can leak tool call tags.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 01186010ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +165 to +166
if set(converted.keys()) != {"arguments"}:
return converted

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve explicit arguments parameter key

Do not unwrap every single-key {"arguments": ...} payload here: this helper now strips the arguments key for any tool that legitimately defines one top-level parameter named arguments (for example, properties.arguments in user-provided tool schemas). Because _convert_params_with_schema() calls this in both streaming and non-streaming extraction paths, those tools will receive function.arguments with the wrong shape ({...} instead of {"arguments": {...}}), which breaks downstream argument binding.

Useful? React with 👍 / 👎.

@AlpinDale AlpinDale merged commit c005aac into main Apr 27, 2026
1 check failed
@AlpinDale AlpinDale deleted the fix/dsml-nested-args branch April 27, 2026 23:16
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