Commit 1203fb9
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>1 parent c9e1cbb commit 1203fb9
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments