diff --git a/app/utils/PER_REQ_CONFIG_MODIFIER.py b/app/utils/PER_REQ_CONFIG_MODIFIER.py index 08a6ab1..13a27d3 100644 --- a/app/utils/PER_REQ_CONFIG_MODIFIER.py +++ b/app/utils/PER_REQ_CONFIG_MODIFIER.py @@ -5,6 +5,8 @@ def next_thread_id(): return str(uuid.uuid4()) +# 用于配置LangServe的add_routes函数的per_req_config_modifier参数 +# 将请求中的config参数传递给Graph async def PER_REQ_CONFIG_MODIFIER(config, request): body = await request.json() return {