openclaw/src/tts
chenglun.hu 6d9cdf9128 fix(tts): read OPENAI_TTS_BASE_URL at runtime instead of module load
Fixes #2816

Changed OPENAI_TTS_BASE_URL from a module-level constant to a function
that reads process.env at call time. This allows config.env settings to
take effect after gateway startup.

Changes:
- OPENAI_TTS_BASE_URL constant → getOpenAITtsBaseUrl() function
- isCustomOpenAIEndpoint constant → isCustomOpenAIEndpoint() function
- Updated 3 call sites to use function calls

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:11:31 +00:00
..
tts.test.ts feat(tts): support custom OpenAI-compatible TTS endpoints (#1701) 2026-01-25 08:04:20 +00:00
tts.ts fix(tts): read OPENAI_TTS_BASE_URL at runtime instead of module load 2026-01-28 23:11:31 +00:00