Instance Propertymacpaw.openai 0.3.2OpenAI
type
The type of the content part.
let type: String
The type of the content part.
let type: String
s6OpenAI9ChatQueryV0C22CompletionMessageParamO04UserfG0V7ContentO06VisionI0O0cei9PartImageG0V4typeSSvp
What are these?87MKV
import OpenAI
struct ChatCompletionContentPartImageParam
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
enum VisionContent
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
init(imageUrl: ImageURL)
let imageUrl: ImageURL
enum CodingKeys
struct ImageURL