ChatResponse

sttp.openai.requests.completions.chat.ChatRequestResponseData.ChatResponse
See theChatResponse companion object
case class ChatResponse(id: String, choices: Seq[Choices], created: Int, model: String, `object`: String, usage: Usage, systemFingerprint: Option[String], serviceTier: Option[String])

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product