jchen8000 commited on
Commit
23837f4
·
verified ·
1 Parent(s): d6ce3c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ groq_chat = ChatGroq(
16
  )
17
 
18
  # Initialize memory to manages the chat history,
19
- # ensuring the AI remembers the specified number of history messages, in this case 5.
20
- memory = ConversationBufferWindowMemory(k=5, memory_key="chat_history", return_messages=True)
21
 
22
 
23
  def generate_response(user_input, history, model, temperature, max_tokens, top_p, seed):
 
16
  )
17
 
18
  # Initialize memory to manages the chat history,
19
+ # ensuring the AI remembers the specified number of history messages, in this case 8.
20
+ memory = ConversationBufferWindowMemory(k=8, memory_key="chat_history", return_messages=True)
21
 
22
 
23
  def generate_response(user_input, history, model, temperature, max_tokens, top_p, seed):