kenken999 commited on
Commit
4a22fd2
Β·
1 Parent(s): c600278

update lmite

Browse files
chat_history.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:013830f73a6fc4b4a17d1e5780eee991d3ab4b26fcc2f34eeb39a5a70f6351aa
3
- size 1806336
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae1206e422e5e5d977a4dc25fc224248220fcc6711ffd7a61a0974207be95ed5
3
+ size 1818624
controllers/gra_02_openInterpreter/OpenInterpreter.py CHANGED
@@ -49,7 +49,7 @@ def format_response(chunk, full_response):
49
 
50
  # 言θͺžγ‚Ώγ‚°γͺしでコードブロックを開始
51
  if chunk.get("start", False):
52
- full_response += "```python\n"
53
 
54
  if chunk.get("format", "") == "active_line":
55
  if not console_content.strip():
@@ -126,11 +126,11 @@ def chat_with_interpreter(message, history=None, a=None, b=None, c=None, d=None)
126
  return "Interpreter reset", history
127
 
128
  full_response = ""
129
- recent_messages = get_recent_messages()
130
 
131
- #for role, message_type, content in recent_messages:
132
- # entry = {"role": role, "type": message_type, "content": content}
133
- # interpreter.messages.append(entry)
134
 
135
  user_entry = {"role": "user", "type": "message", "content": message}
136
  interpreter.messages.append(user_entry)
 
49
 
50
  # 言θͺžγ‚Ώγ‚°γͺしでコードブロックを開始
51
  if chunk.get("start", False):
52
+ full_response += "```result\n"
53
 
54
  if chunk.get("format", "") == "active_line":
55
  if not console_content.strip():
 
126
  return "Interpreter reset", history
127
 
128
  full_response = ""
129
+ recent_messages = get_recent_messages(3)
130
 
131
+ for role, message_type, content in recent_messages:
132
+ entry = {"role": role, "type": message_type, "content": content}
133
+ interpreter.messages.append(entry)
134
 
135
  user_entry = {"role": "user", "type": "message", "content": message}
136
  interpreter.messages.append(user_entry)