ChatCompletionTool
objectThe type of the tool. Currently, only function is supported.
Allowed values:function
Show Child Parameters
ChatCompletionToolChoiceOption
Controls which (if any) tool is called by the model.
none means the model will not call any tool and instead generates a message.
auto means the model can pick between generating a message or calling one or more tools.
required means the model must call one or more tools.
Specifying a particular tool via {"type": "function", "function": {"name": "my_function"}} forces the model to call that tool.
none is the default when no tools are present. auto is the default if tools are present.
One OfChunkingStrategyRequestParam
objectThe chunking strategy used to chunk the file(s). If not set, will use the auto strategy.
One OfAlways auto.
Allowed values:auto
CompleteUploadRequest
objectThe ordered list of Part IDs.
The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
CompletionUsage
objectUsage statistics for the completion request.
Number of tokens in the generated completion.
Default:0
Number of tokens in the prompt.
Default:0
Total number of tokens used in the request (prompt + completion).
Default:0
Breakdown of tokens used in a completion.
Show Child Parameters
Breakdown of tokens used in the prompt.