Find answers from the community

Updated 6 months ago

ChatGPT 3.5

At a glance

The community member in the post is asking how to change the GPT-3 language model from "text-davinci-003" to "gpt-3.5-turbo". In the comments, another community member provides a solution, suggesting to use the ChatOpenAI class from the langchain library and set the model_name parameter to "gpt-3.5-turbo".

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