i ran into a similar problem suddenly,when executing 'query_engine.query()', my code used to work well. The error is: InvalidRequestError: The model text-davinci-003 has been deprecated, learn more here:
https://platform.openai.com/docs/deprecations. i find text-davinci-003 shut down on 2024-01-04,i guess maybe because text-davinci-003 is default model for chat or query, and it's no longger supported although I set the llm=gpt-3.5-turbo when building index. and I also don't know the solution yet. if you know the solution, please let me know.