Instance Methodmacpaw.openai 0.3.2OpenAI
encode(to:)
ChatQuery.swift:411func encode(to encoder: Encoder) throws
func encode(to encoder: Encoder) throws
s6OpenAI9ChatQueryV0C22CompletionMessageParamO04UserfG0V7ContentO6encode2toys7Encoder_p_tKF
What are these?1G87H
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 Encoder
A type that can encode values into a native format for external representation.
init(from decoder: Decoder) throws
init(string: String)
init(vision: [VisionContent])
var string: String? { get }
enum CodingKeys
enum VisionContent