Fixed skill library

pull/51/head
killian 11 months ago
parent d5131b5d8a
commit ff46b005d4

@ -87,7 +87,6 @@ def teach():
interpreter.computer.languages = [l for l in interpreter.computer.languages if l.name.lower() == "python"] interpreter.computer.languages = [l for l in interpreter.computer.languages if l.name.lower() == "python"]
interpreter.force_task_completion = True interpreter.force_task_completion = True
for chunk in interpreter.chat(step, stream=True, display=False): for chunk in interpreter.chat(step, stream=True, display=False):
print(chunk)
if chunk["role"] == "computer" and "start" not in chunk and "end" not in chunk: if chunk["role"] == "computer" and "start" not in chunk and "end" not in chunk:
chunk_type = chunk["type"] chunk_type = chunk["type"]
chunk_content = chunk["content"] chunk_content = chunk["content"]

Loading…
Cancel
Save