From: Thorsten S Date: Wed, 8 Mar 2023 09:41:20 +0000 (+0100) Subject: fix sed-bug X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ddaff53353fdf2a1b3ac11caab401f28fd163705;p=urlbot-v3.git fix sed-bug --- 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)