Fix not generating bash commands

This commit is contained in:
Anton Osika
2023-06-18 08:36:07 +02:00
parent fa7585f900
commit c6b6ca1448
3 changed files with 21 additions and 3 deletions

View File

@@ -26,6 +26,9 @@ class AI:
def fuser(self, msg):
return {"role": "user", "content": msg}
def fassistant(self, msg):
return {"role": "assistant", "content": msg}
def next(self, messages: list[dict[str, str]], prompt=None):
if prompt: