mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
Fix
This commit is contained in:
@@ -594,7 +594,7 @@ async def handle_response(prompt, vykidailo, bartender, history, username, music
|
|||||||
history = []
|
history = []
|
||||||
tokens = 0
|
tokens = 0
|
||||||
history.append(GPT_SETTINGS[0])
|
history.append(GPT_SETTINGS[0])
|
||||||
tokens += num_tokens_from_string(GPT_SETTINGS[0], "gpt-4")
|
tokens += num_tokens_from_string(GPT_SETTINGS[0]["content"], "gpt-4")
|
||||||
for (slowo, reakcja) in word_reactions.items():
|
for (slowo, reakcja) in word_reactions.items():
|
||||||
if not reakcja[3]:
|
if not reakcja[3]:
|
||||||
temp = {"role": "system", "content": "Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]}
|
temp = {"role": "system", "content": "Kiedy słyszysz " + slowo + " to reagujesz lub dzieje się to " + reakcja[0]}
|
||||||
|
|||||||
Reference in New Issue
Block a user