Instance Methodmacpaw.openai 0.3.8OpenAI
encode(to:)
ChatQuery.swift:466func encode(to encoder: Encoder) throws func encode(to encoder: Encoder) throws s6OpenAI9ChatQueryV0C22CompletionMessageParamO04UserfG0V7ContentO06VisionI0O6encode2toys7Encoder_p_tKF What are these?7NLXFimport OpenAIenum VisionContentstruct ChatQueryCreates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
enum ChatCompletionMessageParamstruct UserMessageParamenum Contentprotocol EncoderA type that can encode values into a native format for external representation.
init(chatCompletionContentPartImageParam: ChatCompletionContentPartImageParam) init(chatCompletionContentPartTextParam: ChatCompletionContentPartTextParam) init(from decoder: any Decoder) throws var imageUrl: Self.ChatCompletionContentPartImageParam.ImageURL? { get }var text: String? { get }struct ChatCompletionContentPartImageParamstruct ChatCompletionContentPartTextParam