mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-21 00:55:22 -04:00
[PR #472] [MERGED] Make playground work with apps behind a proxy with root_path #563
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langserve/pull/472
Author: @nat-n
Created: 2/20/2024
Status: ✅ Merged
Merged: 2/27/2024
Merged by: @eyurtsev
Base:
main← Head:feature/respect_root_path📝 Commits (2)
e36ed57Make playground work with apps behind a proxy with root_path18bd75fMerge branch 'main' into feature/respect_root_path📊 Changes
2 files changed (+44 additions, -8 deletions)
View changed files
📝
langserve/api_handler.py(+8 -8)📝
tests/unit_tests/test_server_client.py(+36 -0)📄 Description
Make the playground respect the root_path from the request scope.
Also streamline some related code in APIHandler around normalizing trailing slashes on paths.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.