Skip to content

Fix error when Copilot calls tools without arguments (cherry-pick #30371) #30375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2025

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked Fix error when Copilot calls tools without arguments (#30371)

Fixes #30346

The model can output an empty string to indicate the absence of
arguments, which can't be parsed as a serde_json::Value. When that
happens, we now create an empty object instead on behalf of the model.

Release Notes:

  • Fixed a bug that prevented Copilot models from calling the
    diagnostic tool.

Fixes #30346

The model can output an empty string to indicate the absence of
arguments, which can't be parsed as a `serde_json::Value`. When that
happens, we now create an empty object instead on behalf of the model.

Release Notes:

- Fixed a bug that prevented Copilot models from calling the
`diagnostic` tool.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label May 9, 2025
@as-cii as-cii merged commit a9e5bed into v0.185.x May 9, 2025
14 of 15 checks passed
@as-cii as-cii deleted the cherry-pick-aab01b-v0.185.x branch May 9, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant