This commit is contained in:
@@ -150,6 +150,6 @@ async def websocket_endpoint(
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
# 使用环境变量或默认端口 8003(避免与 vLLM 的 8001 端口冲突)
|
||||
port = int(os.getenv("BACKEND_PORT", "8003"))
|
||||
# 使用环境变量或默认端口 8083(避免与 llama.cpp 的 8081 端口冲突)
|
||||
port = int(os.getenv("BACKEND_PORT", "8083"))
|
||||
uvicorn.run(app, host="0.0.0.0", port=port)
|
||||
|
||||
Reference in New Issue
Block a user