Initializermacpaw.openai 0.3.3OpenAI
init(from:)
ChatResult.swift:142init(from decoder: Decoder) throws
init(from decoder: Decoder) throws
s6OpenAI9ChatQueryV0C22CompletionMessageParamO04UserfG0V7ContentO4fromAIs7Decoder_p_tKcfc
What are these?7R6C1
import OpenAI
enum Content
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
enum ChatCompletionMessageParam
struct UserMessageParam
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(string: String)
init(vision: [VisionContent])
var string: String? { get }
func encode(to encoder: Encoder) throws
enum CodingKeys
enum VisionContent