mirror of
https://github.com/open-webui/pipelines
synced 2025-05-13 17:10:45 +00:00
Let the pipeline know the valves have been updated after loading
This commit is contained in:
parent
c98ca763bc
commit
2af3c15267
2
main.py
2
main.py
@ -202,6 +202,8 @@ async def load_modules_from_directory(directory):
|
|||||||
}
|
}
|
||||||
valves = ValvesModel(**combined_valves)
|
valves = ValvesModel(**combined_valves)
|
||||||
pipeline.valves = valves
|
pipeline.valves = valves
|
||||||
|
if hasattr(pipeline, "on_valves_updated"):
|
||||||
|
await pipeline.on_valves_updated()
|
||||||
|
|
||||||
logging.info(f"Updated valves for module: {module_name}")
|
logging.info(f"Updated valves for module: {module_name}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user