chore: Mark internal vertex-related endpoints as deprecated (#5922)
feat: mark vertex-related endpoints as deprecated
This commit is contained in:
parent
7e756b9db5
commit
492ce82968
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue