We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d25305 commit dd23f9fCopy full SHA for dd23f9f
python/sglang/srt/openai_api/protocol.py
@@ -310,7 +310,7 @@ class ChatCompletionRequest(BaseModel):
310
max_tokens: Optional[int] = None
311
n: int = 1
312
presence_penalty: float = 0.0
313
- response_format: Union[ResponseFormat, StructuralTagResponseFormat] = None
+ response_format: Optional[Union[ResponseFormat, StructuralTagResponseFormat]] = None
314
seed: Optional[int] = None
315
stop: Optional[Union[str, List[str]]] = None
316
stream: bool = False
0 commit comments