Initializermacpaw.openai 0.3.2OpenAI
init(model:)
ModelQuery.swift:15init(model: Model)
init(model: Model)
import OpenAI
struct ModelQuery
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
typealias Model = String
Defines all available OpenAI models supported by the library.
init(from decoder: any Decoder) throws
let model: Model
The ID of the model to use for this request.