[Bugfix] Fix the issue where the model name is empty string, causing no response with the model name. (#15938)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey
2025-04-02 21:33:52 +08:00
committed by GitHub
parent 44f990515b
commit 594a8b9030
2 changed files with 29 additions and 4 deletions

View File

@@ -537,7 +537,7 @@ class OpenAIServing:
lora_request: Optional[LoRARequest] = None) -> str:
if lora_request:
return lora_request.lora_name
if model_name is None:
if not model_name:
return self.models.base_model_paths[0].name
return model_name