jekalmin / extended_openai_conversation

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

Cloudflare AI cannot be used? #228

Open wangcccccct opened 3 weeks ago

wangcccccct commented 3 weeks ago

The following error occurred when using https://api.cloudflare.com/client/v4/accounts/a25ccf91c---(account id)/ai/v1: documents:https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/

Unexpected exception Traceback (most recent call last): File "/config/custom_components/extended_openai_conversation/config_flow.py", line 140, in async_step_user await validate_input(self.hass, user_input) File "/config/custom_components/extended_openai_conversation/config_flow.py", line 113, in validate_input await validate_authentication( File "/config/custom_components/extended_openai_conversation/helpers.py", line 150, in validate_authentication await client.models.list(timeout=10) File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 265, in _get_page return await self._client.request(self._page_cls, self._options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1306, in request return await self._request( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1358, in _request raise self._make_status_error_from_response(err.response) from None openai.APIStatusError: Error code: 405 - {'result': None, 'success': False, 'errors': [{'code': 7001, 'message': 'GET not supported for requested URI.'}], 'messages': []}