qorgh346 commited on
Commit
cbbe2b6
1 Parent(s): 80f4fb3

change gpt module

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -79,7 +79,8 @@ def get_vectorstore(text_chunks):
79
 
80
 
81
  def get_conversation_chain(vectorstore):
82
- llm = ChatOpenAI()
 
83
  memory = ConversationBufferMemory(
84
  memory_key='chat_history', return_messages=True)
85
  conversation_chain = ConversationalRetrievalChain.from_llm(
 
79
 
80
 
81
  def get_conversation_chain(vectorstore):
82
+ gpt_model_name = 'gpt-3.5-turbo'
83
+ llm = ChatOpenAI(model_name = gpt_model_name)
84
  memory = ConversationBufferMemory(
85
  memory_key='chat_history', return_messages=True)
86
  conversation_chain = ConversationalRetrievalChain.from_llm(