kenken999 commited on
Commit
47a91f2
1 Parent(s): 87f5bd7
chat_history.db CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
 
controllers/gpt_enginner20240619112452 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 67b90f44b2331956e83aff7a95a68b65cfeaa275
controllers/gpt_enginner20240619113608 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit f2c575925553073c298202d4e66587b7a90ea801
controllers/gra_02_openInterpreter/OpenInterpreter.py CHANGED
@@ -147,8 +147,13 @@ def chat_with_interpreter_no_stream(message, history=None, a=None, b=None, c=Non
147
  interpreter.messages.append(user_entry)
148
  add_message_to_db("user", "message", message)
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))
 
147
  interpreter.messages.append(user_entry)
148
  add_message_to_db("user", "message", message)
149
 
150
+ chunks = interpreter.chat(message, display=False, stream=False)
151
+ for chunk in chunks:
152
+ if isinstance(chunk, dict):
153
+ full_response = format_response(chunk, full_response)
154
+ else:
155
+ raise TypeError("Expected chunk to be a dictionary")
156
+ yield full_response
157
  assistant_entry = {"role": "assistant", "type": "message", "content": str(full_response)}
158
  interpreter.messages.append(assistant_entry)
159
  add_message_to_db("assistant", "message", str(full_response))
workspace/customer_inquiries.db ADDED
Binary file (12.3 kB). View file
 
workspace/database.db CHANGED
Binary files a/workspace/database.db and b/workspace/database.db differ
 
workspace/items.csv ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ brand,model_number,purchase_date,condition
2
+ Rolex,Submariner,2020-01-01,Excellent
3
+ Omega,Seamaster,2019-06-01,Good
4
+ Cartier,Santos,2018-03-01,Fair
5
+ Patek Philippe,Calatrava,2022-01-01,Excellent
workspace/reports.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ condition,price
2
+ Excellent,1.0
3
+ Fair,0.5
4
+ Good,0.8