Skip to content

Commit e893d0d

Browse files
Add GuidedChoice to ChatCompletionRequest
1 parent c650976 commit e893d0d

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
@@ -309,6 +309,8 @@ type ChatCompletionRequest struct {
309309
ChatTemplateKwargs map[string]any `json:"chat_template_kwargs,omitempty"`
310310
// Specifies the latency tier to use for processing the request.
311311
ServiceTier ServiceTier `json:"service_tier,omitempty"`
312+
// GuidedChoice restricts output to a set of predefined choices.
313+
GuidedChoice []string `json:"guided_choice,omitempty"`
312314
}
313315

314316
type StreamOptions struct {

0 commit comments

Comments
 (0)