Instance Propertymacpaw.openai 0.3.2OpenAI
name
ChatQuery.swift:152var name: String? { get }
var name: String? { get }
s6OpenAI9ChatQueryV0C22CompletionMessageParamO4nameSSSgvp
What are these?SZO3
import OpenAI
enum ChatCompletionMessageParam
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: Decoder) throws
init?(role: Role, content: [UserMessageParam.Content.VisionContent], name: String? = nil)
init?(role: Role, content: String? = nil, name: String? = nil, toolCalls: [Self.AssistantMessageParam.ToolCallParam]? = nil, toolCallId: String? = nil)
var content: Self.UserMessageParam.Content? { get }
var role: Role { get }
var toolCallId: String? { get }
var toolCalls: [Self.AssistantMessageParam.ToolCallParam]? { get }
func encode(to encoder: Encoder) throws
struct AssistantMessageParam
struct DeveloperMessageParam
enum Role
struct SystemMessageParam
struct ToolMessageParam
struct UserMessageParam