jekalmin / extended_openai_conversation

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

Other languages - Dutch? #166

Open smoldersonline opened 4 months ago

smoldersonline commented 4 months ago

Thank you for developing and sharing this integration!

I'm new to HA's Voice Assist in combination with OpenAI. Dutch native speaker here and I prefer to voice control my home in Dutch. With Home Assistant as conversation agent this works fine. I'm probably missing an obvious point, but cannot get it to work (in Dutch) with Extended OpenAI (set as conversation agent). Is this possible at all?

RinyVT commented 3 months ago

I haven't tested this through and through but I just added this line to the prompt message:

The user will speak in Dutch, answer back in Dutch.

And it seems to work 🤷‍♂️

smoldersonline commented 3 months ago

Thanks a lot for your kind support! I will be testing this as soon as I can. Sometimes solutions are just too obvious - for me that is.

jekalmin commented 3 months ago

Thanks for reporting an issue!

If you ask in Dutch, OpenAI, with high probability, will respond in Dutch. If it doesn't, add prompt as @RinyVT suggested

(see https://github.com/jekalmin/extended_openai_conversation/issues/144#issuecomment-1936130728)

smoldersonline commented 3 months ago

@jekalmin - thank you much for sharing this conversation agent and for your kind support. @RinyVT suggestion works for me!

Not a big deal, but the standard error message ('something went wrong ....') is in English, with a very fat Dutch accent.

jekalmin commented 3 months ago

Not a big deal, but the standard error message ('something went wrong ....') is in English, with a very fat Dutch accent.

Oh, it happens to me in my language too. In order to implement that error messages are responded in specific language, we have to set language like HA conversation assistant.

1

It would be a nice feature to have in the future :D