Completion API: add Store and Metadata parameters (#878)

This commit is contained in:
Sander Mack-Crane
2024-10-15 14:16:57 -06:00
committed by GitHub
parent b162541513
commit 9fe2c6ce1f
2 changed files with 19 additions and 12 deletions

View File

@@ -255,6 +255,11 @@ type ChatCompletionRequest struct {
StreamOptions *StreamOptions `json:"stream_options,omitempty"`
// Disable the default behavior of parallel tool calls by setting it: false.
ParallelToolCalls any `json:"parallel_tool_calls,omitempty"`
// Store can be set to true to store the output of this completion request for use in distillations and evals.
// https://platform.openai.com/docs/api-reference/chat/create#chat-create-store
Store bool `json:"store,omitempty"`
// Metadata to store with the completion.
Metadata map[string]string `json:"metadata,omitempty"`
}
type StreamOptions struct {