openai.error.InvalidRequestError: Resource not found

Hello,

Since 2weeks ago I am facing issue with ConversationalRetrievalChain, before it was working fine. Can you please let me know if you sorted out?
Python 3.11
openai 0.28.1
langchain 0.0.316
model gpt-3.5-turbo


File “C:\Python311\Lib\site-packages\langchain\chat_models\openai.py”, line 297, in _completion_with_retry
return self.client.create(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python311\Lib\site-packages\openai\api_resources\chat_completion.py”, line 25, in create
return super().create(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python311\Lib\site-packages\openai\api_resources\abstract\engine_api_resource.py”, line 155, in create
response, _, api_key = requestor.request(
^^^^^^^^^^^^^^^^^^
File “C:\Python311\Lib\site-packages\openai\api_requestor.py”, line 299, in request
resp, got_stream = self._interpret_response(result, stream)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python311\Lib\site-packages\openai\api_requestor.py”, line 710, in _interpret_response
self._interpret_response_line(
File “C:\Python311\Lib\site-packages\openai\api_requestor.py”, line 775, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: Resource not found

1 Like

Welcome to the forum.

I believe this is an old version. Make sure all your packages are up to date.

thanks, I’ve updated langchain and openai. Now getting different error:
openai.NotFoundError: Error code: 404