Spaces:
Sleeping
Sleeping
controllers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -16,7 +16,7 @@ def format_response(chunk, full_response):
|
|
16 |
if chunk["type"] == "code":
|
17 |
if chunk.get("start", False):
|
18 |
full_response += "```python\n"
|
19 |
-
full_response += chunk.get("content", "").replace("`", "")
|
20 |
if chunk.get("end", False):
|
21 |
full_response += "\n```\n"
|
22 |
|
@@ -24,7 +24,7 @@ def format_response(chunk, full_response):
|
|
24 |
if chunk["type"] == "confirmation":
|
25 |
if chunk.get("start", False):
|
26 |
full_response += "```python\n"
|
27 |
-
full_response += chunk.get("content", {}).get("code", "")
|
28 |
if chunk.get("end", False):
|
29 |
full_response += "```\n"
|
30 |
|
|
|
16 |
if chunk["type"] == "code":
|
17 |
if chunk.get("start", False):
|
18 |
full_response += "```python\n"
|
19 |
+
#full_response += chunk.get("content", "").replace("`", "")
|
20 |
if chunk.get("end", False):
|
21 |
full_response += "\n```\n"
|
22 |
|
|
|
24 |
if chunk["type"] == "confirmation":
|
25 |
if chunk.get("start", False):
|
26 |
full_response += "```python\n"
|
27 |
+
#full_response += chunk.get("content", {}).get("code", "")
|
28 |
if chunk.get("end", False):
|
29 |
full_response += "```\n"
|
30 |
|