mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-15 00:07:28 +00:00
API: Switch unload method to POST
GET and POST can be used interchangeably in this case, but adhere to the HTTP spec. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
4
main.py
4
main.py
@@ -236,7 +236,7 @@ async def load_model(request: Request, data: ModelLoadRequest):
|
||||
|
||||
|
||||
# Unload model endpoint
|
||||
@app.get(
|
||||
@app.post(
|
||||
"/v1/model/unload",
|
||||
dependencies=[Depends(check_admin_key), Depends(_check_model_container)],
|
||||
)
|
||||
@@ -318,7 +318,7 @@ async def load_lora(data: LoraLoadRequest):
|
||||
|
||||
|
||||
# Unload lora endpoint
|
||||
@app.get(
|
||||
@app.post(
|
||||
"/v1/lora/unload",
|
||||
dependencies=[Depends(check_admin_key), Depends(_check_model_container)],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user