fix: minor bugs on models endpoints

This commit is contained in:
hieu-jan 2023-12-08 04:03:02 +09:00
parent ba2341e4c3
commit 78b620896d

View File

@ -139,7 +139,7 @@ paths:
x-codeSamples: x-codeSamples:
- lang: "curl" - lang: "curl"
source: | source: |
curl https://localhost:1337/v1/models/zephyr-7b curl https://localhost:1337/v1/models/{model_id}
delete: delete:
operationId: deleteModel operationId: deleteModel
tags: tags:
@ -166,7 +166,7 @@ paths:
x-codeSamples: x-codeSamples:
- lang: "curl" - lang: "curl"
source: | source: |
curl -X DELETE https://localhost:1337/v1/models/zephyr-7b curl -X DELETE https://localhost:1337/v1/models/{model_id}
/models/{model_id}/start: /models/{model_id}/start:
put: put:
operationId: startModel operationId: startModel
@ -195,7 +195,7 @@ paths:
x-codeSamples: x-codeSamples:
- lang: "curl" - lang: "curl"
source: | source: |
curl -X PUT https://localhost:1337/v1/models/zephyr-7b/start curl -X PUT https://localhost:1337/v1/models/{model_id}/start
/models/{model_id}/stop: /models/{model_id}/stop:
put: put:
operationId: stopModel operationId: stopModel
@ -223,7 +223,7 @@ paths:
x-codeSamples: x-codeSamples:
- lang: "curl" - lang: "curl"
source: | source: |
curl -X PUT https://localhost:1337/v1/models/zephyr-7b/stop curl -X PUT https://localhost:1337/v1/models/{model_id}/stop
### THREADS ### THREADS
/threads: /threads: