Revert STT auto-detect: LiteLLM handles audio when LITELLM_API_BASE is set

This commit is contained in:
Daniel Onyejesi 2026-03-29 21:48:44 -04:00
parent 0ada98a13e
commit d1138c8cc2

View file

@ -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';
}