Hello every one, I have used below mentioned code in one of my script:
OpenAI(temperature=0.1, model_name=“gpt-3.5-turbo-16k”, openai_api_key=openai_api_key, request_timeout=80, max_retries=4)
Now when I am executing the script after a gap of around 4-5 hrs, then my automation script getting failed with below mentioned error message:
“Anaconda_sft\lib\site-packages\langchain\llms\openai.py”:202: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: from langchain.chat_models import ChatOpenAI
- warnings.warn(*
- Detected change in ‘Anaconda_sft\Lib\site-packages\langchain\llms\openai.py’, reloading
Anaconda_sft\lib\site-packages\langchain\llms\openai.py:790: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: from langchain.chat_models import ChatOpenAI
- warnings.warn(*
Can anyone help me in solving this First time execution error which does not call the LLM OPENAI model, however, from the next time onwards it start executing successfully.
Am I missing anything?