File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,11 @@ func (r *ChatCompletionResponseFormatJSONSchema) UnmarshalJSON(data []byte) erro
250
250
251
251
// ChatCompletionRequestExtensions contains non-standard OpenAI API extensions.
252
252
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.
254
258
GuidedChoice []string `json:"guided_choice,omitempty"`
255
259
}
256
260
You can’t perform that action at this time.
0 commit comments