Instance Methodmacpaw.openai 0.3.2OpenAI
encode(to:)
ChatQuery.swift:666func encode(to encoder: any Encoder) throws
func encode(to encoder: any Encoder) throws
s6OpenAI9ChatQueryV14ResponseFormatO6encode2toys7Encoder_p_tKF
What are these?5HM4L
import OpenAI
enum ResponseFormat
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
protocol Encoder
A type that can encode values into a native format for external representation.
init(from decoder: any Decoder) throws
A formal initializer reqluired for the inherited Decodable conformance. This type is never returned from the server and is never decoded into.
static func == (lhs: ResponseFormat, rhs: ResponseFormat) -> Bool