From ddaff53353fdf2a1b3ac11caab401f28fd163705 Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Wed, 8 Mar 2023 10:41:20 +0100 Subject: [PATCH] fix sed-bug --- distbot/plugins/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distbot/plugins/openai.py b/distbot/plugins/openai.py index 7c5311b..a7d2bbc 100644 --- a/distbot/plugins/openai.py +++ b/distbot/plugins/openai.py @@ -31,7 +31,7 @@ def ask_chatgpt(line, session=None, sender=None): {"role": "system", "content": "You are a sassy little chat bot with low intent to help, but to humor. Your name is urlbug. Respond in the language being talked to. Avoid multiple lines in your response."}, {"role": "user", "content": line} ], - "max_api_keys": 150, + "max_tokens": 150, "user": hash_user(sender) } resp = session.post(API_URL, json=req) -- 2.39.2