You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c804629
Browse filesBrowse the repository at this point in the historyBrowse files
authored
.Net: Add Gemini usage metadata CachedContentTokenCount and ThoughtsTokenC… (#13208)
Add missing usage variables in GeminiMetadata class
### Motivation and Context
Gemini gives us CachedContentTokenCount and ThoughtsTokenCount to know
how much of cost have the request.
The total input as Gemini eyes is not only PromptTokenCount, but a sum
of these 3 variables.
### Description
Added CachedContentTokenCount and ThoughtsTokenCount variables, filled
by the response and add test.
**As I am beginner in C#, I can build and pass the test, also I can make
an .nupkg of the code changed, but I can't test on other projects, so
PLEASE check that before submitting changes. Thank you so much**
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [X ] The code builds clean without any errors or warnings
- [X ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X ] All unit tests pass, and I have added new tests where possible
- [ X] I didn't break anyone 😄
---------
Co-authored-by: Rodrigo <[email protected]>
Co-authored-by: Mark Wallace <[email protected]>
Co-authored-by: Roger Barreto <[email protected]>
0 commit comments