Refactor get_vertices function to retrieve_vertices_order in chat.py
This commit is contained in:
parent
66c0de5283
commit
e22a3300cb
1 changed files with 3 additions and 2 deletions
|
|
@ -51,8 +51,8 @@ async def try_running_celery_task(vertex, user_id):
|
||||||
return vertex
|
return vertex
|
||||||
|
|
||||||
|
|
||||||
@router.get("/build/{flow_id}/vertices", response_model=VerticesOrderResponse)
|
@router.post("/build/{flow_id}/vertices", response_model=VerticesOrderResponse)
|
||||||
async def get_vertices(
|
async def retrieve_vertices_order(
|
||||||
flow_id: str,
|
flow_id: str,
|
||||||
data: Optional[FlowDataRequest] = None,
|
data: Optional[FlowDataRequest] = None,
|
||||||
stop_component_id: Optional[str] = None,
|
stop_component_id: Optional[str] = None,
|
||||||
|
|
@ -65,6 +65,7 @@ async def get_vertices(
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
flow_id (str): The ID of the flow.
|
flow_id (str): The ID of the flow.
|
||||||
|
data (Optional[FlowDataRequest], optional): The flow data. Defaults to None.
|
||||||
stop_component_id (str, optional): The ID of the stop component. Defaults to None.
|
stop_component_id (str, optional): The ID of the stop component. Defaults to None.
|
||||||
start_component_id (str, optional): The ID of the start component. Defaults to None.
|
start_component_id (str, optional): The ID of the start component. Defaults to None.
|
||||||
chat_service (ChatService, optional): The chat service dependency. Defaults to Depends(get_chat_service).
|
chat_service (ChatService, optional): The chat service dependency. Defaults to Depends(get_chat_service).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue