From 1937ba7a7117a2737eb1d56a0e272935b2da4e21 Mon Sep 17 00:00:00 2001 From: Tomasz Rewak Date: Fri, 19 May 2023 18:06:02 +0200 Subject: [PATCH] Fixing the ChatCompletion API call. --- ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai.py b/ai.py index b7a05fe..f4f26b6 100644 --- a/ai.py +++ b/ai.py @@ -48,7 +48,7 @@ def classify_answer(question: str, personality: str, answer: str, key: str): messages=[ {'role': 'system', 'content': f'{personality} Your answers are rather concise.'}, {'role': 'user', 'content': question}, - {'role': 'system', 'content': answer}, + {'role': 'assistant', 'content': answer}, {'role': 'user', 'content': 'Summarize you answer with a simple "yes" or "no" (answering with a single word). If (and only if) that\'s not possible, instead of answering with "yes" or "no", list conditions under which the answer would be "yes".'}, ] )