mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 08:25:23 +02:00
Add two optional fields to the OpenAI STT provider config schema:
- `language`: server-side default language (ISO 639-1) sent to Whisper when
the client doesn't provide one. Useful for non-English deployments where
admins want to predefine the transcription language without requiring each
user to configure it in the browser.
- `extraParams`: arbitrary key-value pairs forwarded to the STT endpoint.
Enables self-hosted Whisper servers (e.g. Speaches, faster-whisper-server)
to receive provider-specific parameters like `vad_filter` (Voice Activity
Detection) which filters silence and prevents hallucinations on empty
audio clips. These params are ignored by the official OpenAI API.
Example librechat.yaml configuration:
```yaml
speech:
stt:
openai:
url: 'http://whisper-server/v1/audio/transcriptions'
apiKey: 'none'
model: 'whisper-large-v3-turbo'
language: 'pl'
extraParams:
vad_filter: true
```
|
||
|---|---|---|
| .. | ||
| Audio | ||
| Azure | ||
| Citations | ||
| Code | ||
| Firebase | ||
| images | ||
| Local | ||
| OpenAI | ||
| VectorDB | ||
| index.js | ||
| permissions.js | ||
| permissions.spec.js | ||
| process.js | ||
| process.spec.js | ||
| strategies.js | ||