avastmick / google-generative-ai-rs

An unofficial rust-based client library to interact with the Google Gemini generative AI API
https://docs.rs/google-generative-ai-rs/
MIT License
21 stars 7 forks source link

The fields in usageMetadata have changed. #34

Closed sumi21japan closed 4 months ago

sumi21japan commented 4 months ago

The fields in the usageMetadata have been changed in this way.

    "usageMetadata": {
        "promptTokenCount": 213,.
        "candidatesTokenCount": 360
    }
avastmick commented 4 months ago

Thanks for this. Looks good to me.

sumi21japan commented 4 months ago

Thank you!