Type Aliasmacpaw.openai 0.3.2OpenAI
Role
ChatQuery.swift:337typealias Role = ChatQuery.ChatCompletionMessageParam.Role
typealias Role = ChatQuery.ChatCompletionMessageParam.Role
s6OpenAI9ChatQueryV0C22CompletionMessageParamO09DeveloperfG0V4Rolea
What are these?28VPF
import OpenAI
struct DeveloperMessageParam
struct ChatQuery
Creates a model response for the given chat conversation https://platform.openai.com/docs/guides/text-generation
enum ChatCompletionMessageParam
enum Role
init(content: String, name: String? = nil)
init(from decoder: any Decoder) throws
let content: String
The contents of the developer message.
let name: String?
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
let role: Self.Role
The role of the messages author, in this case developer.