Skip to content

Commit dd23f9f

Browse files
committed
fix: Inappropriate lack of Optional type
1 parent 4d25305 commit dd23f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/sglang/srt/openai_api/protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class ChatCompletionRequest(BaseModel):
310310
max_tokens: Optional[int] = None
311311
n: int = 1
312312
presence_penalty: float = 0.0
313-
response_format: Union[ResponseFormat, StructuralTagResponseFormat] = None
313+
response_format: Optional[Union[ResponseFormat, StructuralTagResponseFormat]] = None
314314
seed: Optional[int] = None
315315
stop: Optional[Union[str, List[str]]] = None
316316
stream: bool = False

0 commit comments

Comments
 (0)