Find answers from the community

Updated 2 months ago

ChatGPT 3.5

hi,
anyone knows is this gpt3
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0, model_name="text-davinci-003"))
if so how do i change to gpt3.5?
W
1 comment
You will need to import ChatOpenAI from langchain

Plain Text
from langchain.chat_models import ChatOpenAI
llm_predictor = LLMPredictor(llm=ChatOpenAI(openai_api_key=OPENAI_API_KEY,temperature=0, max_tokens=1024, model_name="gpt-3.5-turbo"))
Add a reply
Sign up and join the conversation on Discord