agent: Fix bug with double-counting tokens in Gemini (#31885)

We report the total number of input tokens by summing the numbers of
1. Prompt tokens
2. Cached tokens

But Google API returns prompt tokens (1) that already include cached
tokens (2), so we were double counting tokens in some cases.

Release Notes:

- Fixed bug with double-counting tokens in Gemini
ae219e9e99Oleksiy Syvokon committed on 6/2/2025, 10:18:44 AM· committed by GitHubparent6d99c12
1 file changedLine totals unavailable