mirror of
https://github.com/AskDavis/nate-discord.git
synced 2026-01-03 04:19:48 -08:00
fix async blocking issue
This commit is contained in:
@@ -14,7 +14,7 @@ def load_system_directives():
|
||||
system_directives = json.load(f)
|
||||
return system_directives
|
||||
|
||||
def chatgpt_response(prompt):
|
||||
async def chatgpt_response(prompt):
|
||||
global DIALOGUE_STACK, SYSTEM_DIRECTIVES
|
||||
SYSTEM_DIRECTIVES = load_system_directives()
|
||||
current_prompt = {"role": "user", "content": prompt}
|
||||
|
||||
Reference in New Issue
Block a user