[Frontend][Bugfix] Disallow extra fields in OpenAI API (#4355)
This commit is contained in:
@@ -9,7 +9,7 @@ import json
|
||||
import ssl
|
||||
|
||||
from vllm.engine.arg_utils import AsyncEngineArgs
|
||||
from vllm.entrypoints.openai.serving_engine import LoRA
|
||||
from vllm.entrypoints.openai.serving_engine import LoRAModulePath
|
||||
|
||||
|
||||
class LoRAParserAction(argparse.Action):
|
||||
@@ -18,7 +18,7 @@ class LoRAParserAction(argparse.Action):
|
||||
lora_list = []
|
||||
for item in values:
|
||||
name, path = item.split('=')
|
||||
lora_list.append(LoRA(name, path))
|
||||
lora_list.append(LoRAModulePath(name, path))
|
||||
setattr(namespace, self.dest, lora_list)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user