Patch Changes
-
045d2e8: fix(google): read
serviceTierfromusageMetadata.serviceTierin both generate and stream pathsThe previous implementation read
serviceTierfrom thex-gemini-service-tier
response header, which is only populated on non-streaming responses. Gemini
streaming includes the value inusageMetadata.serviceTieron every chunk, so
providerMetadata.google.serviceTierwas alwaysnullfor streams. Read from
usageMetadatafor both paths instead.