Commit 87687cf
committed
fix: validate OpenAI TTS voice names, fall back to nova for unknown IDs
When the BatchTTSFallback chain passes an ElevenLabs voice ID to the
OpenAI provider, OpenAI returns 400 because it's not a valid voice
name. Now validates against the known set and falls back to 'nova'.1 parent f697654 commit 87687cf
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
0 commit comments