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
72.67k stars 30.42k forks source link

Unable to switch to supported model #128862

Open dgarozzo opened 2 hours ago

dgarozzo commented 2 hours ago

The problem

Executed: October 20, 2024 at 2:52:22 PM Error: Error generating content: 404 Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash. Result: params: domain: google_generative_ai_conversation service: generate_content service_data: image_filename: /config/www/camerasnapshots/snapshot-doorbell.jpg prompt: >- Very briefly describe what you see in this image from my doorbell camera. Your message needs to be short to fit in a phone notification. Don't describe stationary objects or buildings. target: {} running_script: false

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Generative AI

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_generative_ai_conversation

Diagnostics information

No response

Example YAML snippet

service: google_generative_ai_conversation.generate_content
metadata: {}
data:
  image_filename: /config/www/camerasnapshots/snapshot-doorbell.jpg
  prompt: >-
    Very briefly describe what you see in this image from my doorbell camera.
    Your message needs to be short to fit in a phone notification. Don't
    describe stationary objects or buildings.
response_variable: google_ai_response

Anything in the logs that might be useful for us?

Error: Error generating content: 404 Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.

Additional information

No response

home-assistant[bot] commented 2 hours 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 1 hour ago

Not an issue in the latest version. Please update