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

fix: Ignore unknown fields in rest streaming.#651

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

Merged
parthea merged 3 commits intogoogleapis:mainfromMarkDaoust:rest-streaming
Jun 4, 2024

Conversation

@MarkDaoust
Copy link
Contributor

@MarkDaoustMarkDaoust commentedMay 6, 2024
edited
Loading

If the api adds a new field to a streaming response, it shouldn't break old clients.

We found this in the google.ai.generativelanguage API. Colab forces our clients to use rest, so all our streaming examples broke when the API team rolled out a new field.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as abug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

If the api adds a new field to a stremaing response, it shouldn't break old clients.We found this in the google.ai.generativelanguage API. Colab forces our clients to use rest, so all our streaming examples broke when the API team rolled out a new field.
@MarkDaoustMarkDaoust requested review froma team ascode ownersMay 6, 2024 16:41
@product-auto-labelproduct-auto-labelbot added the size: xsPull request size is extra small. labelMay 6, 2024
@partheaparthea changed the titleIgnore unknown fields in rest streaming.fix: Ignore unknown fields in rest streaming.May 6, 2024
@conventional-commit-lint-gcf

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or useautomerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@partheapartheaenabled auto-merge (squash)June 4, 2024 11:42
@partheaparthea merged commit1203fb9 intogoogleapis:mainJun 4, 2024
@release-pleaserelease-pleasebot mentioned this pull requestJun 4, 2024
This was referencedMay 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@partheapartheaparthea approved these changes

Assignees

@partheaparthea

Labels

size: xsPull request size is extra small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@MarkDaoust@parthea

[8]ページ先頭

©2009-2025 Movatter.jp