Skip to content

Commit

Permalink
Use virtual infrastructure when returning blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Jan 27, 2025
1 parent 1cfa247 commit 9ff3510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/brad/ui/manager_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,15 @@ async def get_predicted_changes(args: PredictedChangesArgs) -> DisplayableBluepr
"""
assert manager is not None
assert manager.planner is not None
assert manager.vdbe_mgr is not None
result = await manager.planner.run_replan_direct(
intensity_multipliers=(args.t_multiplier, args.a_multiplier)
)
if result is None:
raise HTTPException(500, "Failed to run a replan.")
blueprint, _ = result
return DisplayableBlueprint.from_blueprint(blueprint)
virtual_infra = manager.vdbe_mgr.infra()
return DisplayableBlueprint.from_blueprint(blueprint, virtual_infra)


@app.post("/api/1/vdbe")
Expand Down

0 comments on commit 9ff3510

Please sign in to comment.