Initializermacpaw.openai 0.3.2OpenAI
init(chatCompletionContentPartImageParam:)
ChatQuery.swift:447init(chatCompletionContentPartImageParam: ChatCompletionContentPartImageParam)
init(chatCompletionContentPartImageParam: ChatCompletionContentPartImageParam)
s6OpenAI9ChatQueryV0C22CompletionMessageParamO04UserfG0V7ContentO06VisionI0O04chatei9PartImageG0A2K0ceilmG0V_tcfc
What are these?5ROQ0
import OpenAI
enum VisionContent
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
enum ChatCompletionMessageParam
struct UserMessageParam
enum Content
struct ChatCompletionContentPartImageParam
init(chatCompletionContentPartTextParam: ChatCompletionContentPartTextParam)
init(from decoder: any Decoder) throws
var imageUrl: Self.ChatCompletionContentPartImageParam.ImageURL? { get }
var text: String? { get }
func encode(to encoder: Encoder) throws
struct ChatCompletionContentPartTextParam