We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe34c1a commit db172e5Copy full SHA for db172e5
interpreter/core/respond.py
@@ -181,6 +181,21 @@ def respond(interpreter):
181
except:
182
pass
183
184
+ if code.endswith("executeexecute"):
185
+ edited_code = code.replace("executeexecute", "")
186
+ try:
187
+ code_dict = json.loads(edited_code)
188
+ language = code_dict.get("language", language)
189
+ code = code_dict.get("code", code)
190
+ interpreter.messages[-1][
191
+ "content"
192
+ ] = code # So the LLM can see it.
193
194
+ "format"
195
+ ] = language # So the LLM can see it.
196
+ except:
197
+ pass
198
+
199
if code.replace("\n", "").replace(" ", "").startswith('{"language":'):
200
try:
201
code_dict = json.loads(code)
0 commit comments