Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add support for extra_content in chat response tool calls returned by Gemini models#718

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ezequiel-safirsztein-momentum wants to merge2 commits intoopenai-php:main
base:main
Choose a base branch
Loading
fromMOMENTUM-SOLUTIONS-AI:feature/add-extra-content-property-to-toolcall

Conversation

@ezequiel-safirsztein-momentum

What:

  • Bug Fix
  • New Feature

Description:

This PR introduces support for the ⁠extra_content field, which is returned by certain Gemini models (specifically those utilizing the reasoning signature) during tool calls.
When interacting with these models, the API provides ⁠extra_content alongside tool calls. To maintain the integrity of the conversation and satisfy the model's reasoning signature requirements, this content must be preserved and passed back to the API when submitting tool outputs.
Changes:
• Updated the response handling to parse and expose ⁠extra_content from tool call responses.

• Updated the payload builder to include ⁠extra_content when submitting tool outputs back to the model.

@ezequiel-safirsztein-momentumezequiel-safirsztein-momentum changed the titleadd support for extra_content in chat response tool callsadd support for extra_content in chat response tool calls returned by Gemini modelsNov 27, 2025
@iBotPeaches
Copy link
Collaborator

Could we keep the error changes and this change split? Tackling a unified Gemini error thing is a bit more difficult and I wouldn't want it caught up with this extra content.

You can see outstanding questions for Gemini errors in this PR:#693

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

Reviewers

1 more reviewer

@kmk142789kmk142789kmk142789 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ezequiel-safirsztein-momentum@iBotPeaches@kmk142789

[8]ページ先頭

©2009-2025 Movatter.jp