mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-15 09:45:57 +08:00
refac
This commit is contained in:
parent
90effa925e
commit
d23f05fe0a
@ -122,7 +122,7 @@ def openai_chat_completion_message_template(
|
||||
) -> dict:
|
||||
template = openai_chat_message_template(model)
|
||||
template["object"] = "chat.completion"
|
||||
if message:
|
||||
if message is not None:
|
||||
template["choices"][0]["message"] = {"content": message, "role": "assistant"}
|
||||
template["choices"][0]["finish_reason"] = "stop"
|
||||
return template
|
||||
|
Loading…
x
Reference in New Issue
Block a user