Instance Propertymacpaw.openai 0.3.8OpenAI
content
The contents of the message.
let content: String?
The contents of the message.
let content: String?
import OpenAI
struct Message
struct ChatResult
struct Choice
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
let annotations: [Annotation]?
Annotations for the message, when applicable, as when using the web search tool. Web search tool: https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat
let audio: Audio?
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more: https://platform.openai.com/docs/guides/audio
let refusal: String?
The refusal message generated by the model.
let role: String
The role of the author of this message.
let toolCalls: [ChatQuery.ChatCompletionMessageParam.AssistantMessageParam.ToolCallParam]?
The tool calls generated by the model, such as function calls.
struct Annotation
struct Audio
enum CodingKeys