#(SOLVED) How can I see the full prompt and response to ollama when using it with assist?
1 messages · Page 1 of 1 (latest)
You'd need to check logs on the ollama instance itself
May even need to set ollama to debug logging to see that
So there is no option to see that in home assistant?
by using logs in ollama I can see the prompt, can I change some of the stuff in it, or is it impossible to change it
the prompt that starts like this:
Use HassTurnOn to lock and HassTurnOff to unlock a lock. When controlling a device, prefer passing just name and domain. When controlling an area, prefer passing just area name and domain.\nWhen a user asks to turn on all devices of a specific type, ask user to specify an area, unless there is only one device of that type.\nThis device is not able to start timers.\nAn overview of the areas and the devices in this smart home:
What's the context size on your ollama? Seems like the prompt may be getting truncated
I only sent part of it
if there is no way to change it I'll just close the thread and mark as resolved, since I figured out how to read it anyway
so its technically resolved
You can change some parts of it in the configuration in the ollama addon, but the stuff you are showing here comes from HA itself, don't think that can be changed without modifying the core HA code itself.
oh alright, im confused why it says you cannot start a timer
seems like an entirely possible thing
The device itself must support timers
Timers live on the device itself, not in HA
So in other words the assist satellites has to have it implemented
oh alright makes sense, unless some device with a timer had HA integration, as its own device
separate from the device assist is being called on
Well no
(SOLVED) How can I see the full prompt and response to ollama when using it with assist?
The device assist is summoned on itself has to support timers in it's firmware
I mean, if I had a device which was a timer, and I told assist to set a timer it could talk to that device
just like a light
or any other device
Not natively, that would require custom changes
Home assistant can talk to many arbitrary devices
It wouldn't be impossible for there to be an integration with a device that has a timer
Without modifying home assistant
Just like a light is turned on
What i mean is, the built in voice commands don't work in that way
Can voice commands only do preset actions then?
You would have to take over them or make your own and redirect them to this other integration or device
The voice command in ha for timers assume the timer command is in regard to the device making the request
Ie set a timer on the satellite the voice command was issued to, if it supports it.
So you can't change specific entity states with voice commands
Not what i am saying