Spaces:
Running
on
Zero
Running
on
Zero
fad
Browse files
routers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -170,7 +170,7 @@ def chat_with_interpreters(message, history=None, a=None, b=None, c=None, d=None
|
|
170 |
full_response = ""
|
171 |
recent_messages = get_recent_messages()
|
172 |
|
173 |
-
|
174 |
entry = {"role": role, "type": message_type, "content": content}
|
175 |
interpreter.messages.append(entry)
|
176 |
|
|
|
170 |
full_response = ""
|
171 |
recent_messages = get_recent_messages()
|
172 |
|
173 |
+
for role, message_type, content in recent_messages:
|
174 |
entry = {"role": role, "type": message_type, "content": content}
|
175 |
interpreter.messages.append(entry)
|
176 |
|