pass keywords to transcription adapters for spelling hints
This commit is contained in:
@@ -78,3 +78,18 @@ Key decisions:
|
||||
- LLM processing happens between transcription and injection
|
||||
- Adapter creation and processing errors are logged but don't fail the pipeline
|
||||
- Sets status to Processing during LLM phase, then back to Injecting
|
||||
|
||||
## Task 5: Pass keywords to transcription adapters - COMPLETE
|
||||
|
||||
Added Keywords support to transcription adapters:
|
||||
- Added `Keywords []string` to transcriber.Config struct
|
||||
- Updated `ToTranscriberConfig()` to pass keywords from config
|
||||
- OpenAI adapter uses keywords in `Prompt` field (initial_prompt parameter)
|
||||
- Groq transcription adapter uses keywords in `Prompt` field
|
||||
- Groq translation adapter uses keywords in `Prompt` field
|
||||
- Mistral and ElevenLabs adapters ignore keywords (APIs don't support initial_prompt)
|
||||
|
||||
Key decisions:
|
||||
- Keywords joined with ", " to form a single string for the Prompt field
|
||||
- Whisper uses this as "initial_prompt" to help with spelling/terminology
|
||||
- Only added to adapters that clearly support it (OpenAI/Groq via go-openai lib)
|
||||
|
||||
Reference in New Issue
Block a user