Structuremacpaw.openai 0.3.3OpenAI
ChatCompletionContentPartTextParam
ChatQuery.swift:477struct ChatCompletionContentPartTextParam
struct ChatCompletionContentPartTextParam
s6OpenAI9ChatQueryV0C22CompletionMessageParamO04UserfG0V7ContentO06VisionI0O0cei8PartTextG0V
What are these?9YJBE
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
init(chatCompletionContentPartImageParam: 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 ChatCompletionContentPartImageParam
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
init(from decoder: any Decoder) throws
init(text: String)
let text: String
The text content.
let type: String
The type of the content part.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.