home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.57k stars 29.49k forks source link

Gemini Pro Model 404 #105679

Closed User873902 closed 7 months ago

User873902 commented 8 months ago

The problem

Specifying the model gemini-pro does not appear to be yet supported with the Google Generative AI Conversation Integration.

models/gemini-pro

What version of Home Assistant Core has the issue?

2023.12.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Google Generative AI Conversation

Link to integration documentation on our website

No response

Diagnostics information

"Sorry, I had a problem talking to Google Generative AI: 404 models/gemini-pro is not found for API version v1beta2, or is not supported for generateMessage. Call ListModels to see the list of available models and their supported methods."

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Gemini API has recently replaced the legacy PaLM2 API. The model chat-bison-001 is still functioning.

Additional information

No response

home-assistant[bot] commented 8 months ago

Hey there @tronikos, mind taking a look at this issue as it has been labeled with an integration (google_generative_ai_conversation) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_generative_ai_conversation` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google_generative_ai_conversation` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_generative_ai_conversation documentation google_generative_ai_conversation source (message by IssueLinks)

tronikos commented 8 months ago

It requires a few small code changes outlined at https://ai.google.dev/docs/migration_guide/ I'll make them for next release. I'll also try to add support for Gemini Pro Vision.

tronikos commented 8 months ago

https://github.com/home-assistant/core/pull/105787 fixes this. https://github.com/home-assistant/core/pull/105789 adds support for Gemini Pro Vision.

tronikos commented 7 months ago

@home-assistant close