Skip to content

Support private OpenAI gateways and harden TTS pipeline - #38

Open
ustclan wants to merge 1 commit into
shang-zhu:mainfrom
ustclan:feat/openai-gateway-tts-hardening
Open

Support private OpenAI gateways and harden TTS pipeline#38
ustclan wants to merge 1 commit into
shang-zhu:mainfrom
ustclan:feat/openai-gateway-tts-hardening

Conversation

@ustclan

@ustclan ustclan commented May 15, 2026

Copy link
Copy Markdown

Summary

  • Add per-stage base_url and OPENAI_BASE_URL for OpenAI-compatible private gateways.
  • Allow empty OPENAI_API_KEY when the gateway does not require auth.
  • Harden TTS: punctuation-only silent WAV, ElevenLabs retry/serial fallback, worker cap.
  • Map --voice male|female to defaults; fix costs.py f-string.

Test plan

  • Private OpenAI gateway via other_api.yaml + optional empty key
  • ElevenLabs short clip (no 409 on eleven_v3)
  • Punctuation-only segments → silence, no API error
  • Default Together stack without custom config

Add per-stage base_url and OPENAI_BASE_URL for OpenAI-compatible APIs, allow
empty OPENAI_API_KEY, skip punctuation-only TTS, and improve ElevenLabs
concurrency handling with retries and voice gender shorthand.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shang-zhu

Copy link
Copy Markdown
Owner

Hi thanks for your inputs. we will review this PR soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants