From f8229fc4a972d98a05ccd2460a636578e451c1bd Mon Sep 17 00:00:00 2001 From: liunux4odoo Date: Thu, 17 Aug 2023 21:50:36 +0800 Subject: [PATCH] update server_config example --- configs/server_config.py.example | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/server_config.py.example b/configs/server_config.py.example index fd83fc0..5f37779 100644 --- a/configs/server_config.py.example +++ b/configs/server_config.py.example @@ -86,3 +86,15 @@ def fschat_openai_api_address() -> str: host = FSCHAT_OPENAI_API["host"] port = FSCHAT_OPENAI_API["port"] return f"http://{host}:{port}" + + +def api_address() -> str: + host = API_SERVER["host"] + port = API_SERVER["port"] + return f"http://{host}:{port}" + + +def webui_address() -> str: + host = WEBUI_SERVER["host"] + port = WEBUI_SERVER["port"] + return f"http://{host}:{port}"