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}"