mirror of
https://github.com/open-webui/bot
synced 2025-05-18 19:22:14 +00:00
Update ai.py
This commit is contained in:
parent
be50962884
commit
74f7fe4325
@ -74,6 +74,7 @@ def events(user_id):
|
||||
raise e # Propagate any exceptions that occurred in the coroutine
|
||||
|
||||
# OpenAI API coroutine
|
||||
# This uses naive implementation of OpenAI API, that does not utilize the context of the conversation
|
||||
openai_task = openai_chat_completion(
|
||||
[
|
||||
{"role": "system", "content": "You are a friendly AI."},
|
||||
|
Loading…
Reference in New Issue
Block a user