mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix: api usage
This commit is contained in:
parent
13c7d96515
commit
ff84c120f5
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ def apply_model_system_prompt_to_body(
|
||||||
return form_data
|
return form_data
|
||||||
|
|
||||||
if metadata:
|
if metadata:
|
||||||
print("apply_model_system_prompt_to_body: metadata", metadata)
|
|
||||||
variables = metadata.get("variables", {})
|
variables = metadata.get("variables", {})
|
||||||
|
if variables:
|
||||||
system = prompt_variables_template(system, variables)
|
system = prompt_variables_template(system, variables)
|
||||||
|
|
||||||
form_data["messages"] = add_or_update_system_message(
|
form_data["messages"] = add_or_update_system_message(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue