mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
refac: on_valves_update -> on_valves_updated
This commit is contained in:
4
main.py
4
main.py
@@ -451,8 +451,8 @@ async def update_valves(pipeline_id: str, form_data: dict):
|
||||
valves = ValvesModel(**form_data)
|
||||
pipeline.valves = valves
|
||||
|
||||
if hasattr(pipeline, "on_valves_update"):
|
||||
await pipeline.on_valves_update()
|
||||
if hasattr(pipeline, "on_valves_updated"):
|
||||
await pipeline.on_valves_updated()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
raise HTTPException(
|
||||
|
||||
Reference in New Issue
Block a user