serviceTier
The service tier used for processing the request.
let serviceTier: String?
The service tier used for processing the request.
let serviceTier: String?
import OpenAI
struct ChatResult
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
let choices: [Choice]
A list of chat completion choices. Can be more than one if n is greater than 1.
let citations: [String]?
Following are fields that are not part of OpenAI API Reference, but are present in responses from other providers
let created: Int
The Unix timestamp (in seconds) of when the chat completion was created.
let id: String
A unique identifier for the chat completion.
let model: String
The model used for the chat completion.
let object: String
The object type, which is always chat.completion
.
let systemFingerprint: String
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.
let usage: Self.CompletionUsage?
Usage statistics for the completion request.
struct Choice
enum CodingKeys
struct CompletionUsage