refactor config to unified provider structure with LLM support

- add Providers map for centralized API key storage
- add Keywords global field for transcription/LLM hints
- add LLMConfig with Enabled, Provider, Model
- add LLMPostProcessingConfig (RemoveStutters, AddPunctuation, FixGrammar, RemoveFillerWords)
- add LLMCustomPromptConfig (Enabled, Prompt)
- add ToLLMConfig() and IsLLMEnabled() methods
- add auto-migration from old transcription.api_key format
- unified API key resolution: providers -> legacy -> env var
- backward compatible with existing configs
This commit is contained in:
leonardotrapani
2026-01-31 20:39:25 +01:00
parent 933bb6fc32
commit e3bf09b02f
4 changed files with 769 additions and 46 deletions
+1 -1
View File
@@ -47,7 +47,7 @@
"Typecheck passes",
"go test ./internal/config/... passes"
],
"passes": false
"passes": true
},
{
"title": "Create LLM adapter interface and implementations",