TTS: fix oxfmt formatting in tts-core

This commit is contained in:
Kaiyi
2026-03-04 20:25:01 +08:00
committed by Shakker
parent f0993f2c63
commit 878c226a59

View File

@@ -337,10 +337,7 @@ export const OPENAI_TTS_MODELS = ["gpt-4o-mini-tts", "tts-1", "tts-1-hd"] as con
* Note: Read at runtime (not module load) to support config.env loading.
*/
function getOpenAITtsBaseUrl(): string {
return (process.env.OPENAI_TTS_BASE_URL?.trim() || DEFAULT_OPENAI_BASE_URL).replace(
/\/+$/,
"",
);
return (process.env.OPENAI_TTS_BASE_URL?.trim() || DEFAULT_OPENAI_BASE_URL).replace(/\/+$/, "");
}
function isCustomOpenAIEndpoint(): boolean {