Create
struct Create
Request model for holding create
-
model: required*
Declaration
Swift
public var model: String
-
messages: required*
Declaration
Swift
public var messages: [String : String]
-
temperature: optional
Declaration
Swift
public var temperature: Double?
-
top_p: optional
Declaration
Swift
public var top_p: Double?
-
n: optional
Declaration
Swift
public var n: Int?
-
stream: optional
Declaration
Swift
public var stream: Bool?
-
stop: optional
Declaration
Swift
public var stop: [String]?
-
max_tokens: optional
Declaration
Swift
public var max_tokens: Int?
-
presence_penalty: optional
Declaration
Swift
public var presence_penalty: Double?
-
frequency_penalty: optional
Declaration
Swift
public var frequency_penalty: Double?
-
logit_bias: optional
Declaration
Swift
public var logit_bias: [String : Int]?
-
user: optional
Declaration
Swift
public var user: String?
-
init(model:
messages: temperature: top_p: n: stream: stop: max_tokens: presence_penalty: frequency_penalty: logit_bias: user: ) Init function for creating request
Declaration
Swift
public init(model: String, messages: [String : String], temperature: Double? = nil, top_p: Double? = nil, n: Int? = nil, stream: Bool? = nil, stop: [String]? = nil, max_tokens: Int? = nil, presence_penalty: Double? = nil, frequency_penalty: Double? = nil, logit_bias: [String : Int]? = nil, user: String? = nil)