From 1c8285cba806fcb42685941b6345130dbaeadac4 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Sun, 6 Apr 2025 08:03:21 +0545 Subject: [PATCH] removed allwords --- VoiceInk/Whisper/WhisperPrompt.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/VoiceInk/Whisper/WhisperPrompt.swift b/VoiceInk/Whisper/WhisperPrompt.swift index bf19390..2dd1226 100644 --- a/VoiceInk/Whisper/WhisperPrompt.swift +++ b/VoiceInk/Whisper/WhisperPrompt.swift @@ -97,11 +97,10 @@ class WhisperPrompt: ObservableObject { let basePrompt = languagePrompts[selectedLanguage] ?? languagePrompts["default"]! var prompt = basePrompt - var allWords = ["VoiceInk"] - allWords.append(contentsOf: dictionaryWords) - if !allWords.isEmpty { - prompt += "\nImportant words: " + allWords.joined(separator: ", ") + // Add dictionary words directly, without any prefix + if !dictionaryWords.isEmpty { + prompt += "\n VoiceInk, " + dictionaryWords.joined(separator: ", ") } transcriptionPrompt = prompt