mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
[PR #366] [MERGED] Improvement: Support awaitable for per request config modifier #520
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/366
Author: @eyurtsev
Created: 1/4/2024
Status: ✅ Merged
Merged: 1/4/2024
Merged by: @eyurtsev
Base:
main← Head:eugene/update_per_request_modifier📝 Commits (2)
660ec3dx94fcc96x📊 Changes
3 files changed (+57 additions, -19 deletions)
View changed files
📝
langserve/api_handler.py(+23 -14)📝
tests/unit_tests/test_server_client.py(+31 -2)📝
tests/unit_tests/test_validation.py(+3 -3)📄 Description
This PR makes sure that users can pass an async per request config modifier, so
one can access different properties of the raw request object.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.