initial commit
This commit is contained in:
19
OpenAISwift/Models/Command.swift
Normal file
19
OpenAISwift/Models/Command.swift
Normal file
@ -0,0 +1,19 @@
|
||||
//
|
||||
// Created by Adam Rush - OpenAISwift
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct Command: Encodable {
|
||||
let prompt: String
|
||||
let model: String
|
||||
let maxTokens: Int
|
||||
let temperature: Double
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case prompt
|
||||
case model
|
||||
case maxTokens = "max_tokens"
|
||||
case temperature
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user