[Solved] I had to disable the Extended OpenAI Conversation Integration prior to installing the standard OpenAI Conversation Integration. There was a conflict between the two.
I have generated the API key following the documentation and I have tested the API key using this curl command:
curl https://api.openai.com/v1/models -H "Authorization: Bearer sk-proj--5rbZ6dbyE............." -H "Content-Type: application/json"
And the response list of available modules is correct, so the key is correct.
Still, all I get when I try to install the OpenAI Conversation Integration is the “Unexpected error”. There’s nothing else in the logs.
I run HA Yellow and everything is up-to-date. I’ve doublechecked the network connection from the Terminal in HA using this command:
curl -v https://api.openai.com/v1/models
And the output shows correct connection to OpenAI.
So what can be wrong?