kenken999 commited on
Commit
b20cae5
·
1 Parent(s): ac556ae
chat_history.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d793df12cba6efe368228ca8b4e0ad1594adbb4ec433918d22790d1dc75e5de
3
- size 1667072
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:513379f0dd190e5eff19f6ce4ad5c28f0b4370ef13ee37a73ff69010febe111e
3
+ size 1671168
controllers/gra_02_openInterpreter/OpenInterpreter.py CHANGED
@@ -31,15 +31,15 @@ def format_response(chunk, full_response):
31
  full_response += "```\n"
32
 
33
  # Console
34
- if chunk["type"] == "consoless":
35
  if chunk.get("start", False):
36
  full_response += "```python\n"
37
  if chunk.get("format", "") == "active_line":
38
- console_content = chunk.get("content", "")
39
  if console_content is None:
40
  full_response += "No output available on console."
41
  if chunk.get("format", "") == "output":
42
- console_content = chunk.get("content", "")
43
  full_response += console_content
44
  if chunk.get("end", False):
45
  full_response += "\n```\n"
 
31
  full_response += "```\n"
32
 
33
  # Console
34
+ if chunk["type"] == "console":
35
  if chunk.get("start", False):
36
  full_response += "```python\n"
37
  if chunk.get("format", "") == "active_line":
38
+ console_content = chunk.get("content", "").replace("`", "")
39
  if console_content is None:
40
  full_response += "No output available on console."
41
  if chunk.get("format", "") == "output":
42
+ console_content = chunk.get("content", "").replace("`", "")
43
  full_response += console_content
44
  if chunk.get("end", False):
45
  full_response += "\n```\n"