[Bugfix][Frontend] Reject LoRA adapters named after a served model (#59286)
Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
765872e7ed
commit
105a4e097b
@@ -245,6 +245,14 @@ class OpenAIServingModels:
|
||||
status_code=HTTPStatus.BAD_REQUEST,
|
||||
)
|
||||
|
||||
if self.is_base_model(request.lora_name):
|
||||
return create_error_response(
|
||||
message=f"The lora adapter '{request.lora_name}' conflicts with a "
|
||||
"served base model.",
|
||||
err_type="InvalidUserInput",
|
||||
status_code=HTTPStatus.BAD_REQUEST,
|
||||
)
|
||||
|
||||
# If not loading inplace
|
||||
# Check if the lora adapter with the given name already exists
|
||||
if not request.load_inplace and request.lora_name in self.lora_requests:
|
||||
|
||||
Reference in New Issue
Block a user