Skip to content

也许修复了工具调用的问题#259

Open
POf-L wants to merge 3 commits intoCJackHwang:devfrom
POf-L:main
Open

也许修复了工具调用的问题#259
POf-L wants to merge 3 commits intoCJackHwang:devfrom
POf-L:main

Conversation

@POf-L
Copy link
Copy Markdown

@POf-L POf-L commented Apr 16, 2026

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

CJackHwang and others added 3 commits April 13, 2026 04:00
全模型全渠道附件上传deepseek功能
全接口兼容性待测试
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
feat: 增强工具调用解析能力,支持 XML 命名参数和 CDATA
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

@POf-L is attempting to deploy a commit to the cjack's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

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

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: 9b98b541ae

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +235 to +237
if strings.Contains(v, "\n") {
return strings.Trim(v, "\n")
}
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 Trim spaces when normalizing multiline XML params

normalizeToolParamValue now strips only \n at the edges, so pretty-printed arguments like <parameter name="path">\n README.md\n</parameter> are normalized to " README.md" (and CRLF input can retain \r). These values are forwarded as tool arguments, which can break path/command-style tools that expect exact tokens; before this change these values were TrimSpaced. Please keep multiline-content preservation without leaving structural indentation on scalar arguments.

Useful? React with 👍 / 👎.

Comment on lines +314 to +316
if (s.includes('\n')) {
return s.replace(/^\n+/, '').replace(/\n+$/, '');
}
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 Strip indentation in JS multiline parameter normalization

The JS stream parser mirrors the same regression: for any value containing a newline, normalizeParamValue removes only leading/trailing newlines and preserves surrounding spaces. A common formatted payload (<parameter name="path">\n README.md\n</parameter>) becomes " README.md", so streamed tool-call arguments can carry invalid path/command values even though they are just XML indentation artifacts.

Useful? React with 👍 / 👎.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ds2api Ready Ready Preview, Comment Apr 16, 2026 1:20pm

@CJackHwang
Copy link
Copy Markdown
Owner

这里codexreview的一些边际问题可能还要仔细处理一下

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.

2 participants