Skip to content

Commit

Permalink
propagate astream events from add_route (#763)
Browse files Browse the repository at this point in the history
Propagate the parameter to APIHandler
  • Loading branch information
eyurtsev authored Sep 12, 2024
1 parent 2c957bd commit 8b4d8df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions langserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ def add_routes(
per_req_config_modifier=per_req_config_modifier,
stream_log_name_allow_list=stream_log_name_allow_list,
playground_type=playground_type,
astream_events_version=astream_events_version,
)

namespace = path or ""

route_tags = [path.strip("/")] if path else None
Expand Down

0 comments on commit 8b4d8df

Please sign in to comment.