Hassassistant / openai_response

Custom component to integrate OpenAI's ChatGPT into Home Assistant
76 stars 15 forks source link

Error Task exception was never retrieved #10

Closed Arcade75 closed 1 year ago

Arcade75 commented 1 year ago

Hello

Thanks for your integration. I have this error and I am pretty sure I followed all the steps:

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/openmindsai/sensor.py", line 69, in async_ask response = await self._hass.async_add_executor_job(ask, self._session_cookie, self._model, new_query) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/openmindsai/sensor.py", line 31, in ask response_message = response_json[0]["response"] KeyError: 0

Thanks

Arcade75 commented 1 year ago

I am sorry, I was referring to OpenMindsAI instead of this integration!!

You can close this issue

Hassassistant commented 1 year ago

no problem thanks for updating.