ChatRequestResponseData
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Type members
Classlikes
Represents the response of a chat completion.
Represents the response of a chat completion.
Value parameters
- `object`
-
The object type, which is always chat.completion.
- choices
-
A list of chat completion choices. Can be more than one if n is greater than 1.
- created
-
The Unix timestamp (in seconds) of when the chat completion was created.
- id
-
A unique identifier for the chat completion.
- model
-
The model used for the chat completion.
- serviceTier
-
The service tier used for processing the request.
- systemFingerprint
-
This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.
- usage
-
Usage statistics for the completion request.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ChatResponse.type
Represents a choice in the chat completion.
Represents a choice in the chat completion.
Value parameters
- finishReason
-
The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, tool_calls if the model called a tool, or function_call (deprecated) if the model called a function.
- index
-
The index of this choice.
- logprobs
-
Log probability information for the choice.
- message
-
The message associated with this choice.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
An object representing a list of chat completions.
An object representing a list of chat completions.
Value parameters
- `object`
-
The type of this object. It is always set to "list".
- data
-
An array of chat completion objects.
- firstId
-
The identifier of the first chat completion in the data array.
- hasMore
-
Indicates whether there are more chat completions available.
- lastId
-
The identifier of the last chat completion in the data array.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ListChatResponse.type
An object representing a list of chat completion messages.
An object representing a list of chat completion messages.
Value parameters
- `object`
-
The type of this object. It is always set to "list".
- data
-
An array of chat completion message objects.
- firstId
-
The identifier of the first chat message in the data array.
- hasMore
-
Indicates whether there are more chat messages available.
- lastId
-
The identifier of the last chat message in the data array.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ListMessageResponse.type
Value parameters
- bytes
-
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.
- logprob
-
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.
- token
-
The token.
- topLogprobs
-
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.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
LogprobData.type
Value parameters
- content
-
A list of message content tokens with log probability information.
- refusal
-
A list of message refusal tokens with log probability information.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value parameters
- audio
-
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
- content
-
The contents of the message.
- functionCall
-
The name and arguments of a function that should be called, as generated by the model.
- id
-
The identifier of the chat message.
- refusal
-
The refusal message generated by the model.
- role
-
The role of the author of this message.
- toolCalls
-
The tool calls generated by the model, such as function calls.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value parameters
- bytes
-
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.
- logprob
-
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.
- token
-
The token.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TopLogprobs.type