Let the pipeline know the valves have been updated after loading

This commit is contained in:
Hans Keppens 2024-11-20 17:30:48 +01:00
parent c98ca763bc
commit 2af3c15267

View File

@ -202,6 +202,8 @@ async def load_modules_from_directory(directory):
}
valves = ValvesModel(**combined_valves)
pipeline.valves = valves
if hasattr(pipeline, "on_valves_updated"):
await pipeline.on_valves_updated()
logging.info(f"Updated valves for module: {module_name}")