Instance Propertymacpaw.openai 0.3.2OpenAI
model
The model to generate the completion.
let model: String
The model to generate the completion.
let model: String
import OpenAI
struct ChatStreamResult
@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 created: TimeInterval
The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
let id: String
A unique identifier for the chat completion. Each chunk has the same ID.
let object: String
The object type, which is always chat.completion.chunk
.
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.
struct Choice
enum CodingKeys