frontend
frontend copied to clipboard
Assist: Long Answers Cut Off
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
- [ ] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.
Describe the issue you are experiencing
Hi! In the Assist window, long answers are cut off, which makes it a bit hard to use. Of course, the window being small is not so helpful in that case either ( https://github.com/home-assistant/frontend/discussions/22124 ).
Would it be possible to make the output unlimited or at least cut it off at, I don't know, two pages or so of output? Thanks!
(also posted here: https://community.home-assistant.io/t/maximizing-the-assist-window/774531/2)
Describe the behavior you expected
I would like to have unlimited output in the assist window. Right now, it seems to be simply cut off after a certain number of characters (see screenshot).
Steps to reproduce the issue
- In Settings > Devices & Services, create a "Google Generative AI" integration
- In Settings > Voice assistant, create a new Assistant with the Google Generative AI integration from step 1 as Conversation agent
- In Google Chrome, or a similar web browser, open the assist window (top right browser side, second icon from the right, looks like a speech bubble with three dots in it).
- Ask something with a longer output, e.g. "what is needed for a good project mnanagement?"
- Notice, that the text after "Important Tools:" is missing (and that the window ist too small, but that's noted in https://github.com/home-assistant/frontend/discussions/22124 ) ...
What version of Home Assistant Core has the issue?
2024.9.2
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Google Chrome 129.0.6668.70
Which operating system are you using to run this browser?
Windows 10
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
I had the same issue, and I just worked out that it's from a default setting which you can change. I am using OpenAI, but I believe the same should be true for Google's model based on this forum post. Bear in mind that (at least for how OpenAI charges for API usage), this will very likely increase costs.
Here are the steps I followed to increase the limit:
- Navigate to the integration by going to Settings > Devices & Services > the integration (for me, OpenAI Conversation)
- Next to the service, click Configure
- Uncheck "Recommended model settings"
- Change the value in "Maximum tokens to return in response". I updated mine from 150 to 500, so from ~112 to ~375 words
- Submit > Finish
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.