From 191913f12a1b2195b41164366b3e09fef4c1a4dd Mon Sep 17 00:00:00 2001 From: tobydog1234 <153780207+tobydog1234@users.noreply.github.com> Date: Mon, 13 May 2024 12:58:49 -0400 Subject: [PATCH] Prompt Settings Addition --- DesktopAI/Providers/GroqProvider.swift | 2 +- DesktopAI/SystemPromptSettingsView.swift | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/DesktopAI/Providers/GroqProvider.swift b/DesktopAI/Providers/GroqProvider.swift index a0a978b..7f839ef 100644 --- a/DesktopAI/Providers/GroqProvider.swift +++ b/DesktopAI/Providers/GroqProvider.swift @@ -97,7 +97,7 @@ class GroqProvider: BaseProvider { let requestBody: [String: Any] = [ - "max_tokens": 1024, + "max_tokens": 8192, "messages": messages, "model": item.model, "stop": NSNull(), diff --git a/DesktopAI/SystemPromptSettingsView.swift b/DesktopAI/SystemPromptSettingsView.swift index 5d5ec93..824b54c 100644 --- a/DesktopAI/SystemPromptSettingsView.swift +++ b/DesktopAI/SystemPromptSettingsView.swift @@ -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") + } + } + } + } } }