feat(telegram): add voice transcription model override (#98)

This commit is contained in:
banteg
2026-01-12 17:35:21 +04:00
committed by GitHub
parent 2f05b46465
commit 04671593aa
10 changed files with 26 additions and 3 deletions
+6
View File
@@ -28,12 +28,18 @@ Configuration (under `[transports.telegram]`):
```toml
voice_transcription = true
voice_transcription_model = "gpt-4o-mini-transcribe" # optional
```
Set `OPENAI_API_KEY` in the environment. If transcription is enabled but the API key
is missing or the audio download fails, takopi replies with a short error and skips
the run.
To use a local OpenAI-compatible Whisper server, also set `OPENAI_BASE_URL` (for
example, `http://localhost:8000/v1`) and a dummy `OPENAI_API_KEY` if your server
ignores it. If your server requires a specific model name, set
`voice_transcription_model` (for example, `whisper-1`).
## Forum topics (optional)
Takopi can bind Telegram forum topics to a project/branch and persist resume tokens