From c1642076c27f5f1c9d3ee9e078770605b26c8b63 Mon Sep 17 00:00:00 2001 From: kingbri Date: Thu, 4 Jan 2024 21:11:36 -0500 Subject: [PATCH] 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 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 68098595..2cb843f3 100644 --- a/main.py +++ b/main.py @@ -236,7 +236,7 @@ async def generator(): # 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)], )