diff --git a/VoiceInk/Models/AIPrompts.swift b/VoiceInk/Models/AIPrompts.swift index c4e4533..3fe08ee 100644 --- a/VoiceInk/Models/AIPrompts.swift +++ b/VoiceInk/Models/AIPrompts.swift @@ -2,12 +2,12 @@ enum AIPrompts { static let customPromptTemplate = """ Your task is to reformat and enhance the text provided within tags according to the following guidelines: + The information in section is ONLY for reference. + 1. If you have , always reference it for better accuracy because the may have inaccuracies due to speech recognition errors. + 2. Use the as a reference for correcting the names, nouns, file names, and technical terms in the . %@ - IMPORTANT: The input will be wrapped in tags to identify what needs enhancement. - Your response should ONLY be to enhance text WITHOUT any tags. - DO NOT include tags in your response. """ @@ -26,13 +26,5 @@ enum AIPrompts { """ - static let contextInstructions = """ - - Your task is to work ONLY with the content within the tags. - - IMPORTANT: The information in section is ONLY for reference. - - If the & contains similar looking names, nouns, company names, or usernames, prioritize the spelling and form from the section, as the may contain errors during transcription. - - Use the to understand the user's intent and context. - - """ + } diff --git a/VoiceInk/Services/AIEnhancementService.swift b/VoiceInk/Services/AIEnhancementService.swift index 779a016..e52f47c 100644 --- a/VoiceInk/Services/AIEnhancementService.swift +++ b/VoiceInk/Services/AIEnhancementService.swift @@ -126,7 +126,7 @@ class AIEnhancementService: ObservableObject { let selectedText = selectedText, !selectedText.isEmpty { let selectedTextContext = "\n\nSelected Text: \(selectedText)" - let contextSection = "\n\n\(AIPrompts.contextInstructions)\n\n\(selectedTextContext)\n" + let contextSection = "\n\n\(selectedTextContext)\n" return activePrompt.promptText + contextSection } @@ -147,7 +147,7 @@ class AIEnhancementService: ObservableObject { } let contextSection = if !clipboardContext.isEmpty || !screenCaptureContext.isEmpty { - "\n\n\(AIPrompts.contextInstructions)\n\n\(clipboardContext)\(screenCaptureContext)\n" + "\n\n\(clipboardContext)\(screenCaptureContext)\n" } else { "" }