Skip to content

ChatParameters

MarcoDotIO edited this page Mar 1, 2023 · 1 revision

ChatParameters

public struct ChatParameters 

Initializers

init(model:messages:temperature:topP:numberOfCompletions:stream:stop:presencePenalty:frequencyPenalty:logitBias:user:)

public init(
        model: String,
        messages: [ChatMessage],
        temperature: Double = 1.0,
        topP: Double = 1.0,
        numberOfCompletions: Int = 1,
        stream: Bool = false,
        stop: [String]? = nil,
        presencePenalty: Double = 0.0,
        frequencyPenalty: Double = 0.0,
        logitBias: [String : Int]? = nil,
        user: String? = nil
    ) 

Properties

body

public var body: [String: Any] 
Types
Global Functions
Clone this wiki locally