jekalmin / extended_openai_conversation

Home Assistant custom component of conversation agent. It uses OpenAI to control your devices.
916 stars 129 forks source link

When asking 'How many lights are on' It turns on various lights. #82

Open hobbyboy opened 8 months ago

hobbyboy commented 8 months ago

When I ask 'How many lights are on?' It replies but will turn on certain lights. I added "If I ask you a product count then don’t execute a function" to the configuration, it turned on less, but it still does it.

abipster commented 8 months ago

+1 I am having the same issue, I already tried different variations of sentences to not execute functions but it always does

zeekens commented 8 months ago

I had the same problem, had to update the prompt template with this monster of a sentence

"If I ask you about the current state of the home, or many devices I have, or if they are on or off, or how many devices are in a specific state, just respond with the accurate information but do not call the execute_services function."

jekalmin commented 8 months ago

I also experienced this issue. For me, it didn't happen when using gpt-3.5-turbo(in Korean Language) before, but it started to happen with gpt-3.5-turbo-1106. We can try to tweak the prompt like @zeekens did. Hope that gpt gets smarter soon.

jekalmin commented 7 months ago

Can you try gpt-3.5-turbo-0125 model?