update server_config example
This commit is contained in:
parent
8b3b869418
commit
f8229fc4a9
|
|
@ -86,3 +86,15 @@ def fschat_openai_api_address() -> str:
|
||||||
host = FSCHAT_OPENAI_API["host"]
|
host = FSCHAT_OPENAI_API["host"]
|
||||||
port = FSCHAT_OPENAI_API["port"]
|
port = FSCHAT_OPENAI_API["port"]
|
||||||
return f"http://{host}:{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}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue