Initializermacpaw.openai 0.3.3OpenAI
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s6OpenAI9ChatQueryV0C33CompletionFunctionCallOptionParamO4fromAEs7Decoder_p_tKcfc
What are these?2PF1F
import OpenAI
enum ChatCompletionFunctionCallOptionParam
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(function: String)
func encode(to encoder: Encoder) throws