Update tools/code_interpreter_tools.py
Browse files
tools/code_interpreter_tools.py
CHANGED
|
@@ -311,7 +311,7 @@ def execute_code_multilang(code: str, language: str = "python") -> str:
|
|
| 311 |
code (str): the source code to execute
|
| 312 |
language (str): the language of the code
|
| 313 |
"""
|
| 314 |
-
result =
|
| 315 |
response = []
|
| 316 |
|
| 317 |
if result["status"] == "success":
|
|
|
|
| 311 |
code (str): the source code to execute
|
| 312 |
language (str): the language of the code
|
| 313 |
"""
|
| 314 |
+
result = interpreter.execute_code(code, language)
|
| 315 |
response = []
|
| 316 |
|
| 317 |
if result["status"] == "success":
|