#don t trust any AI generated code

1 messages · Page 1 of 1 (latest)

placid crystal
#

This isn't ai generated code... this is the prompt being sent to openAI in HA's source code.

dusty flower
#

that was not clear to me based on your question, but it looks like the list of areas is already provided in the variable area

#

furthermore, this is a py file, so it's python, not jinja

placid crystal
#

Sorry about that! I know ai generated answers are a hot topic.

#

When you enable the integration, you can update the prompt in the UI. The python file just shows the default prompt. But the prompt itself does seem to be in jinja format

dusty flower
#

yes, but there is no default variable areas

#

so this variable must be filled somewhere else and provided to the integration

placid crystal
#

ahh, you're right!

#

Kinda frustrating that I can't see what exactly is sent to OpenAI

#

hmm

#

But that answered my question!

dusty flower
#

👍

placid crystal
#

Thank you for your help @dusty flower !