mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: rename stream_message_template
This commit is contained in:
@@ -97,7 +97,7 @@ def message_template(model: str):
|
||||
}
|
||||
|
||||
|
||||
def stream_message_template(model: str, message: str):
|
||||
def openai_chat_chunk_message_template(model: str, message: str):
|
||||
template = message_template(model)
|
||||
template["object"] = "chat.completion.chunk"
|
||||
template["choices"][0]["delta"] = {"content": message}
|
||||
|
||||
Reference in New Issue
Block a user