Skip to content

Commit

Permalink
Fix: Pass dependencies to doc endpont for stream (#483)
Browse files Browse the repository at this point in the history
This PR fixes a bug that wasn't making dependency information
show up for the documentation of the stream endpoint.

The dependencies were correctly applied for the endpoint itself,
so only the documentation is affected for /stream endpoint.
  • Loading branch information
eyurtsev committed Feb 26, 2024
1 parent 594527e commit 25ebe63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ async def _stream_docs(
include_in_schema=True,
tags=route_tags,
name=_route_name("stream"),
dependencies=dependencies,
description=(
"This endpoint allows to stream the output of the runnable. "
"The endpoint uses a server sent event stream to stream the "
Expand Down

0 comments on commit 25ebe63

Please sign in to comment.