From c99ea0db1ba06207b4d629be73133e35261d2400 Mon Sep 17 00:00:00 2001 From: Kevin Dawkins Date: Thu, 14 May 2026 13:22:16 -0700 Subject: [PATCH] fix(vercel): accept speech and transcription from API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds `speech` and `transcription` to the ModelType enum so parsing succeeds, and skips these models in the main loop — same pattern we already use for image / video, since OpenCode doesn't consume them. --- packages/core/script/generate-vercel.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/core/script/generate-vercel.ts b/packages/core/script/generate-vercel.ts index 7206fb462..e1d05707a 100644 --- a/packages/core/script/generate-vercel.ts +++ b/packages/core/script/generate-vercel.ts @@ -21,6 +21,8 @@ enum ModelType { Image = "image", Video = "video", Reranking = "reranking", + Speech = "speech", + Transcription = "transcription", } enum SkipZeroFields { @@ -506,11 +508,13 @@ async function main() { let unchanged = 0; for (const apiModel of apiModels) { - // Skip these since OpenCode does not support image / video / reranking yet + // Skip these since OpenCode does not support image / video / reranking / speech / transcription yet if ( apiModel.type === ModelType.Image || apiModel.type === ModelType.Video || - apiModel.type === ModelType.Reranking + apiModel.type === ModelType.Reranking || + apiModel.type === ModelType.Speech || + apiModel.type === ModelType.Transcription ) { continue; }