mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
@@ -790,8 +790,8 @@ async def process_chat_payload(request, form_data, user, metadata, model):
|
||||
),
|
||||
form_data["messages"],
|
||||
)
|
||||
if "thinking" in features:
|
||||
form_data["enable_thinking"] = features["thinking"]
|
||||
if "reasoning" in features:
|
||||
form_data["enable_thinking"] = features["reasoning"]
|
||||
form_data["chat_template_kwargs"] = {
|
||||
"enable_thinking": features["thinking"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user