drewvid commited on
Commit
6fee397
·
1 Parent(s): bdb5f95

very short memory

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,10 +98,10 @@ def respond(
98
  - Experience with debugging tools and techniques.
99
  - Ability to optimize performance and diagnose memory issues.
100
  """
101
-
102
  messages = [{"role": "system", "content": system_message}]
103
 
104
- for val in history:
105
  if val[0]:
106
  messages.append({"role": "user", "content": val[0]})
107
  if val[1]:
 
98
  - Experience with debugging tools and techniques.
99
  - Ability to optimize performance and diagnose memory issues.
100
  """
101
+
102
  messages = [{"role": "system", "content": system_message}]
103
 
104
+ for val in history[-1:]:
105
  if val[0]:
106
  messages.append({"role": "user", "content": val[0]})
107
  if val[1]: