Skip to content

fix: stop sanitizing native Gemini tool schemas#155

Merged
bbbugg merged 2 commits into
mainfrom
fix/properties
May 5, 2026
Merged

fix: stop sanitizing native Gemini tool schemas#155
bbbugg merged 2 commits into
mainfrom
fix/properties

Conversation

@bbbugg
Copy link
Copy Markdown
Member

@bbbugg bbbugg commented May 5, 2026

Avoid mutating Google Native tool declarations so client-provided schemas are forwarded unchanged.

避免修改 Google 原生工具声明,以便将客户端提供的模式原封不动地转发。

@bbbugg bbbugg added the 🐛 Bug Something isn't working label May 5, 2026
@bbbugg bbbugg merged commit 903eee7 into main May 5, 2026
1 check passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🎉 此 PR 的修改已在版本 v1.2.4 中发布。
🎉 The changes in this PR have been released in version v1.2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[特性错误]: 转发包含 tools/function_declarations 的请求到 Gemini 时返回 400 INVALID_ARGUMENT

1 participant