Skip to content

Commit 092e435

Browse files
committed
Prediction
1 parent 83c71ec commit 092e435

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

chat.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ type ChatCompletionRequest struct {
263263
ReasoningEffort string `json:"reasoning_effort,omitempty"`
264264
// Metadata to store with the completion.
265265
Metadata map[string]string `json:"metadata,omitempty"`
266+
// The prediction to use for the completion.
267+
Prediction *Prediction `json:"prediction,omitempty"`
268+
}
269+
270+
type Prediction struct {
271+
Type string `json:"type,omitempty"`
272+
Content string `json:"content,omitempty"`
266273
}
267274

268275
type StreamOptions struct {

0 commit comments

Comments
 (0)