add root path

This commit is contained in:
arslantu 2024-04-06 10:29:10 +08:00
parent 16a377ac12
commit 0a16741821
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ services:
- HOST=127.0.0.1 - HOST=127.0.0.1
- PORT=9001 # change to your port - PORT=9001 # change to your port
- API_KEY=token-123456 # change to your api key for security - API_KEY=token-123456 # change to your api key for security
- ROOT_PATH=/openai # change to your root path
deploy: deploy:
resources: resources:
reservations: reservations:

View File

@ -1 +1 @@
python -m vllm.entrypoints.openai.api_server --dtype bfloat16 --model ${MODEL_PATH} --max-model-len ${MAX_MODEL_LEN} --host ${HOST} --port ${PORT} --api-key ${API_KEY} python -m vllm.entrypoints.openai.api_server --dtype bfloat16 --model ${MODEL_PATH} --max-model-len ${MAX_MODEL_LEN} --host ${HOST} --port ${PORT} --api-key ${API_KEY} --root-path ${ROOT_PATH}