ProfessorLeVesseur commited on
Commit
eb97795
·
verified ·
1 Parent(s): 469f3f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def ask_with_memory(vector_store, query, chat_history=[]):
40
 
41
  from langchain.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate
42
 
43
- llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.5, openai_api_key=OPENAI_API_KEY)
 
44
 
45
  retriever = vector_store.as_retriever(search_type='similarity', search_kwargs={'k': 3})
46
 
 
40
 
41
  from langchain.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate
42
 
43
+ # llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.5, openai_api_key=OPENAI_API_KEY)
44
+ llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0.5)
45
 
46
  retriever = vector_store.as_retriever(search_type='similarity', search_kwargs={'k': 3})
47