LLM 후처리 명령어 선택 기능 추가
- Settings LLM 탭: "기본 후처리 명령어" 드롭다운 추가 (없음/다듬기/번역/요약/문법교정/커스텀) - VoiceModeService: defaultLLMAction='none'이면 LLM 스킵 (이전: 'refine' 아니면 무조건 스킵 → 수정) - 사용자가 Settings에서 후처리 방식을 선택하면 모든 녹음에 적용
This commit is contained in:
parent
5596a52dcb
commit
4e23622c44
2 changed files with 34 additions and 4 deletions
|
|
@ -440,10 +440,9 @@ class VoiceModeService extends EventEmitter {
|
|||
|
||||
this.emit('transcription-update', { text: result.text, isFinal: true })
|
||||
|
||||
// LLM 후처리
|
||||
// LLM 후처리: none이면 스킵, 그 외에는 LLM 처리
|
||||
const llmAction = configGet('defaultLLMAction')
|
||||
if (llmAction !== 'refine' || !getLocalLLMService().isAvailable()) {
|
||||
// LLM 미가용이거나 기본 액션이면 원본 텍스트로 완료
|
||||
if (llmAction === 'none' || !getLocalLLMService().isAvailable()) {
|
||||
this._completeSession(result.text)
|
||||
} else {
|
||||
await this._processWithLLM(result.text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue