Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lora_path to chat completion #2438

Merged
merged 9 commits into from
Dec 17, 2024
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 @@ -274,6 +274,7 @@ class ChatCompletionRequest(BaseModel):
temperature: float = 0.7
top_p: float = 1.0
user: Optional[str] = None
lora_path: Optional[Union[List[Optional[str]], Optional[str]]] = None

# Extra parameters for SRT backend only and will be ignored by OpenAI models.
regex: Optional[str] = None
merrymercy marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading