google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.62k stars 322 forks source link

fix: Pass along model version in GenerateContentResponse #621

Open Annhiluc opened 1 week ago

Annhiluc commented 1 week ago

Description of the change

Pass along model version in GenerateContentResponse.

Motivation

b/378140421

Type of change

Bug fix

Checklist

Annhiluc commented 1 week ago

Thanks Mark for the review! Reverted docs.

Tests are failing because the generated client library doesn't have that attribute.

To clarify, did I miss adding the model_version somewhere or has the client library already added this attribute and it hasn't been released yet? How can I check on the release of the client lib?

MarkDaoust commented 1 week ago

I need to release a new version and update the dependancies in setup.py.

cl/693090666