Instance Propertymacpaw.openai 0.3.3OpenAI
name
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
let name: String?
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
let name: String?
s6OpenAI9ChatQueryV0C22CompletionMessageParamO09DeveloperfG0V4nameSSSgvp
What are these?9NGY9
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
@frozen struct String
A Unicode string value that is a collection of characters.
init(content: String, name: String? = nil)
init(from decoder: any Decoder) throws
let content: String
The contents of the developer message.
let role: Self.Role
The role of the messages author, in this case developer.
typealias Role = ChatQuery.ChatCompletionMessageParam.Role