Skip to content

Commit

Permalink
Prompt Settings Addition
Browse files Browse the repository at this point in the history
  • Loading branch information
tobydog1234 committed May 13, 2024
1 parent b5a6f90 commit 191913f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DesktopAI/Providers/GroqProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class GroqProvider: BaseProvider {


let requestBody: [String: Any] = [
"max_tokens": 1024,
"max_tokens": 8192,
"messages": messages,
"model": item.model,
"stop": NSNull(),
Expand Down
20 changes: 19 additions & 1 deletion DesktopAI/SystemPromptSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ import SwiftData

struct SystemPromptSettingsView: View {
var body: some View {
Text("Test")
HSplitView {
VStack {
Text("Test")
.frame(width: 200, height: 300)
.border(Color.black, width: 1)
HStack {
Button(action: {
print("Plus")
}) {
Image(systemName: "plus")
}
Button(action: {
print("minus")
}) {
Image(systemName: "minus")
}
}
}
}
}
}

0 comments on commit 191913f

Please sign in to comment.