Skip to content

Commit

Permalink
make properties public
Browse files Browse the repository at this point in the history
  • Loading branch information
emin-grbo committed Mar 13, 2023
1 parent 57c855c commit be6bcc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/OpenAIKit/Models+ChatGPT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public enum MessageRole: String, Codable {
}

public struct Message: Codable {
let role: MessageRole
let content: String
public let role: MessageRole
public let content: String

init(role: MessageRole, content: String) {
self.role = role
Expand All @@ -18,7 +18,7 @@ public struct Message: Codable {

public struct ChatQuery: Codable {
var model: AiModel
var messages: [Message]
public var messages: [Message]
// needs to have a default instruction in place: [Message(role: .system, content: "You are a helpful assistant")]

init(messages: [Message]) {
Expand Down

0 comments on commit be6bcc9

Please sign in to comment.