Closed rajdeepint closed 3 weeks ago
AttributeError: module 'google.generativeai' has no attribute 'GenerativeModel'
This usually indicates you're using a very old version of the SDK. pip freeze |grep google
should show us what you have installed and pip -U 'google-generativeai>=0.8.3'
should update it.
vertexai.init(project="dev-poc-xxxyyy", location="x-y")
This repository does not cover Vertex examples. Maybe head over to https://github.com/GoogleCloudPlatform/vertex-ai-samples
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.
This issue was closed because it has been inactive for 27 days. Please post a new issue if you need further assistance. Thanks!
Description of the bug:
Unable to get response_logprobs in response body - unrecognized parameter
Actual vs expected behavior:
According to this cookbook, the following should work -
But I receive the following error -
Which tells me that the API has changed.
Additionally, my company's internal offering receives the following error if I replicate the
generation_config
line -I get the following error -
Although it works if I replace generation_config with other parameters such as -
Any other information you'd like to share?
No response