We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a611c commit 9ed7474Copy full SHA for 9ed7474
chat.go
@@ -275,6 +275,11 @@ type ChatCompletionRequest struct {
275
Metadata map[string]string `json:"metadata,omitempty"`
276
// Configuration for a predicted output.
277
Prediction *Prediction `json:"prediction,omitempty"`
278
+ // ChatTemplateKwargs provides a way to add non-standard parameters to the request body.
279
+ // Additional kwargs to pass to the template renderer. Will be accessible by the chat template.
280
+ // Such as think mode for qwen3. "chat_template_kwargs": {"enable_thinking": false}
281
+ // https://qwen.readthedocs.io/en/latest/deployment/vllm.html#thinking-non-thinking-modes
282
+ ChatTemplateKwargs map[string]any `json:"chat_template_kwargs,omitempty"`
283
}
284
285
type StreamOptions struct {
0 commit comments