(appInfo: (name: String, bundleId: String, windowTitle: String), dictationSlot: SettingsStore.DictationShortcutSlot?)
| 3639 | |
| 3640 | extension ContentView { |
| 3641 | private func buildSystemPrompt( |
| 3642 | appInfo: (name: String, bundleId: String, windowTitle: String), |
| 3643 | dictationSlot: SettingsStore.DictationShortcutSlot? = nil |
| 3644 | ) -> String { |
| 3645 | if let slot = dictationSlot ?? self.currentDictationShortcutSlot(for: self.activeRecordingMode) { |
| 3646 | return SettingsStore.shared.effectiveDictationSystemPrompt(for: slot, appBundleID: appInfo.bundleId) |
| 3647 | } |
| 3648 | return SettingsStore.shared.effectiveSystemPrompt(for: .dictate, appBundleID: appInfo.bundleId) |
| 3649 | } |
| 3650 | |
| 3651 | private var shouldTracePromptProcessing: Bool { |
| 3652 | self.forcePromptTraceToConsole || |
no test coverage detected