openai.error.InvalidRequestError: Resource not found


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\”, line 297, in _completion_with_retry
return self.client.create(**kwargs)
File “C:\Python311\Lib\site-packages\openai\api_resources\”, line 25, in create
return super().create(*args, **kwargs)
File “C:\Python311\Lib\site-packages\openai\api_resources\abstract\”, line 155, in create
response, _, api_key = requestor.request(
File “C:\Python311\Lib\site-packages\openai\”, line 299, in request
resp, got_stream = self._interpret_response(result, stream)
File “C:\Python311\Lib\site-packages\openai\”, line 710, in _interpret_response
File “C:\Python311\Lib\site-packages\openai\”, 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