chore: Mark internal vertex-related endpoints as deprecated (#5922)

feat: mark vertex-related endpoints as deprecated
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-01-29 22:25:34 -03:00 • committed by GitHub
commit 492ce82968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,7 @@ async def try_running_celery_task(vertex, user_id):
return vertex return vertex
@router.post("/build/{flow_id}/vertices") @router.post("/build/{flow_id}/vertices", deprecated=True)
async def retrieve_vertices_order( async def retrieve_vertices_order(
*, *,
flow_id: uuid.UUID, flow_id: uuid.UUID,
@ -471,7 +471,7 @@ class DisconnectHandlerStreamingResponse(StreamingResponse):
break break
@router.post("/build/{flow_id}/vertices/{vertex_id}") @router.post("/build/{flow_id}/vertices/{vertex_id}", deprecated=True)
async def build_vertex( async def build_vertex(
*, *,
flow_id: uuid.UUID, flow_id: uuid.UUID,
@ -713,7 +713,7 @@ async def _stream_vertex(flow_id: str, vertex_id: str, chat_service: ChatService
yield str(StreamData(event="close", data={"message": "Stream closed"})) yield str(StreamData(event="close", data={"message": "Stream closed"}))
@router.get("/build/{flow_id}/{vertex_id}/stream", response_class=StreamingResponse) @router.get("/build/{flow_id}/{vertex_id}/stream", response_class=StreamingResponse, deprecated=True)
async def build_vertex_stream( async def build_vertex_stream(
flow_id: uuid.UUID, flow_id: uuid.UUID,
vertex_id: str, vertex_id: str,