Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Mark vertex-related endpoints as deprecated #5922

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/backend/base/langflow/api/v1/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def try_running_celery_task(vertex, user_id):
return vertex


@router.post("/build/{flow_id}/vertices")
@router.post("/build/{flow_id}/vertices", deprecated=True)
async def retrieve_vertices_order(
*,
flow_id: uuid.UUID,
Expand Down Expand Up @@ -471,7 +471,7 @@ async def listen_for_disconnect(self, receive: Receive) -> None:
break


@router.post("/build/{flow_id}/vertices/{vertex_id}")
@router.post("/build/{flow_id}/vertices/{vertex_id}", deprecated=True)
async def build_vertex(
*,
flow_id: uuid.UUID,
Expand Down Expand Up @@ -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"}))


@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(
flow_id: uuid.UUID,
vertex_id: str,
Expand Down
Loading