OpenAI API

ChatCompletionTokenLogprob

object
tokenstringrequired

The token.

logprobnumberrequired

The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.

bytesarray[integer]required

A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null if there is no bytes representation for the token.

top_logprobsarray[object]required

List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested top_logprobs returned.

Show Child Parameters
Example

ChatCompletionTool

object
typestringrequired

The type of the tool. Currently, only function is supported.

Allowed values:function

functionobjectrequired
Show Child Parameters
Example

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 Of

ChunkingStrategyRequestParam

object

The chunking strategy used to chunk the file(s). If not set, will use the auto strategy.

One Of
typestringrequired

Always auto.

Allowed values:auto

Example

CompleteUploadRequest

object
* Additional properties are NOT allowed.
part_idsarray[string]required

The ordered list of Part IDs.

md5string

The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.

Example