update server_config example

This commit is contained in:
liunux4odoo 2023-08-17 21:50:36 +08:00
parent 8b3b869418
commit f8229fc4a9
1 changed files with 12 additions and 0 deletions

View File

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