Skip to content

Commit 446019c

Browse files
committed
add ChatTemplateKwargs to ChatCompletionRequest
1 parent 93a611c commit 446019c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chat.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ type ChatCompletionRequest struct {
275275
Metadata map[string]string `json:"metadata,omitempty"`
276276
// Configuration for a predicted output.
277277
Prediction *Prediction `json:"prediction,omitempty"`
278+
// ExtraBody provides a way to add non-standard parameters to the request body. such as think mode for qwen3
279+
ChatTemplateKwargs map[string]interface{} `json:"chat_template_kwargs,omitempty"`
278280
}
279281

280282
type StreamOptions struct {

0 commit comments

Comments
 (0)