Create
struct Create
Request model for holding create
-
model: required*
Declaration
Swift
public var model: String
-
prompt: optional
Declaration
Swift
public var prompt: [String]?
-
suffix: optional
Declaration
Swift
public var suffix: String?
-
max_tokens: optional
Declaration
Swift
public var max_tokens: Int?
-
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?
-
logprobs: optional
Declaration
Swift
public var logprobs: Int?
-
echo: optional
Declaration
Swift
public var echo: Bool?
-
stop: optional
Declaration
Swift
public var stop: String?
-
presence_penalty: optional
Declaration
Swift
public var presence_penalty: Double?
-
frequency_penalty: optional
Declaration
Swift
public var frequency_penalty: Double?
-
best_of: optional
Declaration
Swift
public var best_of: Int?
-
logit_bias: optional
Declaration
Swift
public var logit_bias: [String : Int]?
-
user: optional
Declaration
Swift
public var user: String?
-
init(model:
prompt: suffix: max_tokens: temperature: top_p: n: stream: logprobs: echo: stop: presence_penalty: frequency_penalty: best_of: logit_bias: user: ) Init function for creating request
Declaration
Swift
public init(model: String, prompt: [String]? = nil, suffix: String? = nil, max_tokens: Int? = nil, temperature: Double? = nil, top_p: Double? = nil, n: Int? = nil, stream: Bool? = nil, logprobs: Int? = nil, echo: Bool? = nil, stop: String? = nil, presence_penalty: Double? = nil, frequency_penalty: Double? = nil, best_of: Int? = nil, logit_bias: [String : Int]? = nil, user: String? = nil)