Skip to content

Commit

Permalink
misc: update lora management api with adding version
Browse files Browse the repository at this point in the history
  • Loading branch information
brosoul committed Sep 24, 2024
1 parent f51f9c4 commit cc554f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/aibrix/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def init_app_state(state: State) -> None:
)


@router.post("/lora_adapter/load")
@router.post("/v1/lora_adapter/load")
async def load_lora_adapter(request: LoadLoraAdapterRequest, raw_request: Request):
response = await inference_engine(raw_request).load_lora_adapter(request)
if isinstance(response, ErrorResponse):
Expand All @@ -91,7 +91,7 @@ async def load_lora_adapter(request: LoadLoraAdapterRequest, raw_request: Reques
return Response(status_code=200, content=response)


@router.post("/lora_adapter/unload")
@router.post("/v1/lora_adapter/unload")
async def unload_lora_adapter(request: UnloadLoraAdapterRequest, raw_request: Request):
response = await inference_engine(raw_request).unload_lora_adapter(request)
if isinstance(response, ErrorResponse):
Expand Down

0 comments on commit cc554f4

Please sign in to comment.