commit | 1203fb97d2685535f89113e944c4764c1deb595e | [log] [tgz] |
---|---|---|
author | Mark Daoust <markdaoust@google.com> | Tue Jun 04 04:44:01 2024 -0700 |
committer | GitHub <noreply@github.com> | Tue Jun 04 11:44:01 2024 +0000 |
tree | 354446e1e6ad8df855ce6907e80722fcfb0417af | |
parent | c9e1cbb3297fc1878b85eb4c38919b5e9bb165bd [diff] |
fix: Ignore unknown fields in rest streaming. (#651) * Ignore unknown fields in rest streaming. 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. * format --------- Co-authored-by: Anthonios Partheniou <partheniou@google.com>