From 484c9f3be22db6c85e194c43c92c7f8e80d21dba Mon Sep 17 00:00:00 2001 From: chenjian <1435317881@qq.com> Date: Wed, 12 Nov 2025 20:51:38 +0800 Subject: [PATCH] Fix env setting for unify code 20250922 (#4994) * [Optimize] Improve perf for fd response token with internal adapter * fix env setting --- fastdeploy/envs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastdeploy/envs.py b/fastdeploy/envs.py index 5bef8780e..339e84f81 100644 --- a/fastdeploy/envs.py +++ b/fastdeploy/envs.py @@ -108,9 +108,9 @@ environment_variables: dict[str, Callable[[], Any]] = { # LLMEngine send response port, used when FD_ENABLE_INTERNAL_ADAPTER=1 "FD_ZMQ_SEND_RESPONSE_SERVER_PORT": lambda: os.getenv("FD_ZMQ_SEND_RESPONSE_SERVER_PORT", "8201"), # LLMEngine recieve requests port, used when FD_ENABLE_INTERNAL_ADAPTER=1 - "FD_ZMQ_RECV_REQUEST_SERVER_PORTS": os.getenv("FD_ZMQ_RECV_REQUEST_SERVER_PORTS", "8200"), + "FD_ZMQ_RECV_REQUEST_SERVER_PORTS": lambda: os.getenv("FD_ZMQ_RECV_REQUEST_SERVER_PORTS", "8200"), # LLMEngine send response port, used when FD_ENABLE_INTERNAL_ADAPTER=1 - "FD_ZMQ_SEND_RESPONSE_SERVER_PORTS": os.getenv("FD_ZMQ_SEND_RESPONSE_SERVER_PORTS", "8201"), + "FD_ZMQ_SEND_RESPONSE_SERVER_PORTS": lambda: os.getenv("FD_ZMQ_SEND_RESPONSE_SERVER_PORTS", "8201"), # LLMEngine recieve control command port, used when FD_ENABLE_INTERNAL_ADAPTER=1 "FD_ZMQ_CONTROL_CMD_SERVER_PORTS": lambda: os.getenv("FD_ZMQ_CONTROL_CMD_SERVER_PORTS", "8202"), # Whether to enable cache task in decode node