removed allwords

This commit is contained in:
Beingpax 2025-04-06 08:03:21 +05:45
parent dab827ed39
commit 1c8285cba8

View File

@ -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