TanStack AI version#
main (repo tooling, not a published package)
Framework/Library version#
N/A (GitHub Actions sync-models.yml)
Describe the bug and the steps to reproduce it#
The daily Sync Model Metadata workflow has failed on every scheduled run since 2026-10-08. The last success was 2026-10-07. No one was alerted. As a result, no gateway model updates have landed in that time. Example: MiniMax M3.1 Flash (released 2026-10-19) is missing from OpenRouter and Vercel AI Gateway, and PR #1836 hand-adds it.
Every failed run stops at the same line:
Error: modelschemas returned an empty ElevenLabs model list
at main (scripts/sync-elevenlabs-models.ts:108:11)
Latest run: https://github.com/TanStack/ai/actions/runs/39586378665
Root cause. modelschemas moved canDoTextToSpeech from capabilities to providerMetadata. The live row now looks like this:
"capabilities": { "seed": true },
"providerMetadata": { "canDoTextToSpeech": false, "canDoVoiceConversion": true, "languages": ["en"] }
ElevenLabsCatalogModel and isListedTtsModel in scripts/model-sync/elevenlabs.ts still read capabilities.canDoTextToSpeech. No row matches, so the TTS group is empty and the guard throws. The music, sound and voice-design request schemas still resolve correctly.
Why one provider blocks all of them. generate:models chains each step with &&. When the ElevenLabs step throws, the OpenRouter, Vercel and Lovable output that was already converted is never committed.
Why no one was alerted. GitHub emails a scheduled-workflow failure only to the user who last changed the cron. The workflow has no failure notification step.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)#
curl -s 'https://modelschemas.com/v1/models?provider=elevenlabs' | jq '.models[0] | {capabilities, providerMetadata}'
pnpm generate:models:elevenlabs
Expected behavior#
The fix should do three things:
- Read
canDoTextToSpeech from providerMetadata, where modelschemas publishes it now. Update the type and the unit test fixture in scripts/model-sync/.
- Make sure a failure is visible. Add an
if: failure() step to .github/workflows/sync-models.yml that opens or comments on a single tracking issue, labelled sync-models. Use GITHUB_TOKEN, with issues: write.
- Decide whether one provider's failure should block the others. Option A: run each sync step as its own workflow step, then commit whatever succeeded and still fail the job. Keep the hard failure on empty data: do not turn it into a silent skip.
How often does this bug happen?#
Every time
Screenshots or Videos#
No response
Platform#
GitHub Actions (ubuntu-latest)
Additional context#
Related: #1836 (MiniMax Flash hand-added because the sync was down).