kenken999 commited on
Commit
87f5bd7
β€’
1 Parent(s): b7ccc1c
chat_history.db CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
 
controllers/gpt_enginner20240619111712 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 3a6d68b95a08bcddf772a6b97b987ca2717a29b0
controllers/gra_02_openInterpreter/OpenInterpreter.py CHANGED
@@ -149,12 +149,12 @@ def chat_with_interpreter_no_stream(message, history=None, a=None, b=None, c=Non
149
 
150
  full_response = interpreter.chat(message, display=False, stream=False)
151
 
152
- assistant_entry = {"role": "assistant", "type": "message", "content": full_response}
153
  interpreter.messages.append(assistant_entry)
154
- add_message_to_db("assistant", "message", full_response)
155
 
156
  #yield full_response
157
- return full_response, history
158
 
159
 
160
  # εˆζœŸεŒ–
 
149
 
150
  full_response = interpreter.chat(message, display=False, stream=False)
151
 
152
+ assistant_entry = {"role": "assistant", "type": "message", "content": str(full_response)}
153
  interpreter.messages.append(assistant_entry)
154
+ add_message_to_db("assistant", "message", str(full_response))
155
 
156
  #yield full_response
157
+ return str(full_response), history
158
 
159
 
160
  # εˆζœŸεŒ–
workspace/items.db ADDED
Binary file (8.19 kB). View file