Skip to content

Commit

Permalink
Add lora_path to chat completion (#2438)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccchow authored Dec 17, 2024
1 parent 5ce9dae commit 33c5ff2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sglang/srt/openai_api/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ class ChatCompletionRequest(BaseModel):
user: Optional[str] = None

# Extra parameters for SRT backend only and will be ignored by OpenAI models.
lora_path: Optional[Union[List[Optional[str]], Optional[str]]] = None
regex: Optional[str] = None
min_tokens: int = 0
repetition_penalty: float = 1.0
Expand Down

0 comments on commit 33c5ff2

Please sign in to comment.