Skip to content

Commit 1fcaa8a

Browse files
Update chat.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 557eb1c commit 1fcaa8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chat.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ func (r *ChatCompletionResponseFormatJSONSchema) UnmarshalJSON(data []byte) erro
250250

251251
// ChatCompletionRequestExtensions contains non-standard OpenAI API extensions.
252252
type ChatCompletionRequestExtensions struct {
253-
// GuidedChoice restricts output to a set of predefined choices.
253+
// GuidedChoice is a vLLM-specific extension that restricts the model's output
254+
// to one of the predefined string choices provided in this field. This feature
255+
// is used to constrain the model's responses to a controlled set of options,
256+
// ensuring predictable and consistent outputs in scenarios where specific
257+
// choices are required.
254258
GuidedChoice []string `json:"guided_choice,omitempty"`
255259
}
256260

0 commit comments

Comments
 (0)