Revert STT auto-detect: LiteLLM handles audio when LITELLM_API_BASE is set
This commit is contained in:
parent
0ada98a13e
commit
d1138c8cc2
1 changed files with 2 additions and 3 deletions
|
|
@ -22,9 +22,8 @@ function getTranscribeProvider() {
|
|||
if (env === 'local') return 'local';
|
||||
if (env === 'aws') return 'aws';
|
||||
if (env === 'openai') return 'openai';
|
||||
// Auto-detect: only use LiteLLM for STT if LITELLM_STT_MODEL is explicitly set
|
||||
// Having LITELLM_API_BASE for AI text does NOT automatically route audio through LiteLLM
|
||||
if (process.env.LITELLM_STT_MODEL && process.env.LITELLM_API_BASE && litellmClient) return 'litellm';
|
||||
// Auto-detect: use LiteLLM when configured (it handles audio transcriptions)
|
||||
if (process.env.LITELLM_API_BASE && litellmClient) return 'litellm';
|
||||
if (isAWSTranscribeConfigured()) return 'aws';
|
||||
return 'openai';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue