projects
/
urlbot-v3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09334e0
)
fix sed-bug
author
Thorsten S
<mail@aero2k.de>
Wed, 8 Mar 2023 09:41:20 +0000
(10:41 +0100)
committer
Thorsten S
<mail@aero2k.de>
Wed, 8 Mar 2023 09:41:20 +0000
(10:41 +0100)
distbot/plugins/openai.py
patch
|
blob
|
history
diff --git
a/distbot/plugins/openai.py
b/distbot/plugins/openai.py
index 7c5311b4eae46346b57aded28bd7d2b465c76277..a7d2bbc5be9c3e8cad6abf5935a6db65274e711c 100644
(file)
--- 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_key
s": 150,
+ "max_
token
s": 150,
"user": hash_user(sender)
}
resp = session.post(API_URL, json=req)