mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
fix: api usage
This commit is contained in:
parent
13c7d96515
commit
ff84c120f5
@ -15,9 +15,9 @@ def apply_model_system_prompt_to_body(
|
||||
return form_data
|
||||
|
||||
if metadata:
|
||||
print("apply_model_system_prompt_to_body: metadata", metadata)
|
||||
variables = metadata.get("variables", {})
|
||||
system = prompt_variables_template(system, variables)
|
||||
if variables:
|
||||
system = prompt_variables_template(system, variables)
|
||||
|
||||
form_data["messages"] = add_or_update_system_message(
|
||||
system, form_data.get("messages", [])
|
||||
|
Loading…
Reference in New Issue
Block a user