diff --git a/README.md b/README.md index 0e8a4b8..b6585fc 100644 --- a/README.md +++ b/README.md @@ -493,22 +493,19 @@ type ChatCompletionRequest struct { // If true, returns the log probabilities of each output token returned in the content of message. // This option is currently not available on the gpt-4-vision-preview model. LogProbs bool `json:"logprobs,omitempty"` - // TopLogProbs is an integer between 0 and 5 specifying the number of most likely tokens to return at each - // token position, each with an associated log probability. - // logprobs must be set to true if this parameter is used. - TopLogProbs int `json:"top_logprobs,omitempty"` - User string `json:"user,omitempty"` - // Deprecated: use Tools instead. - Functions []FunctionDefinition `json:"functions,omitempty"` - // Deprecated: use ToolChoice instead. - FunctionCall any `json:"function_call,omitempty"` - Tools []Tool `json:"tools,omitempty"` - // This can be either a string or an ToolChoice object. - ToolChoice any `json:"tool_choice,omitempty"` - // Options for streaming response. Only set this when you set stream: true. - 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"` + // TopLogProbs is an integer between 0 and 5 specifying the number of most + // likely tokens to return at each // token position, each with an + // associated log probability. LogProbs must be set to true if this + // parameter is used. + TopLogProbs int `json:"top_logprobs,omitempty"` // TopLogProbs is the top log probs of the chat completion message. + User string `json:"user,omitempty"` // User is the user of the chat completion message. + Tools []Tool `json:"tools,omitempty"` // Tools is the tools of the chat completion message. + ToolChoice any `json:"tool_choice,omitempty"` // ToolChoice is the tool choice of the chat completion message. + StreamOptions *StreamOptions `json:"stream_options,omitempty"` // StreamOptions is the stream options of the chat completion message. Only set this when you set stream: true. + // ParallelToolCalls is the parallel tool calls of the chat completion message. + // + // bool + ParallelToolCalls any `json:"parallel_tool_calls,omitempty"` } ``` diff --git a/chat.go b/chat.go index 217d866..b29329d 100644 --- a/chat.go +++ b/chat.go @@ -210,13 +210,8 @@ type ChatCompletionRequest struct { // logprobs must be set to true if this parameter is used. TopLogProbs int `json:"top_logprobs,omitempty"` User string `json:"user,omitempty"` - // Deprecated: use Tools instead. - Functions []FunctionDefinition `json:"functions,omitempty"` - // Deprecated: use ToolChoice instead. - FunctionCall any `json:"function_call,omitempty"` - Tools []Tool `json:"tools,omitempty"` - // This can be either a string or an ToolChoice object. - ToolChoice any `json:"tool_choice,omitempty"` + Tools []Tool `json:"tools,omitempty"` // Tools is the tools of the chat completion message. + ToolChoice any `json:"tool_choice,omitempty"` // ToolChoice is the tool choice of the chat completion message. // Options for streaming response. Only set this when you set stream: true. StreamOptions *StreamOptions `json:"stream_options,omitempty"` // Disable the default behavior of parallel tool calls by setting it: false.