Skip to content

fix(vercel): accept reranking model type from API#5

Merged
R-Taneja merged 1 commit intodevfrom
fix-vercel-reranking-type
Apr 16, 2026
Merged

fix(vercel): accept reranking model type from API#5
R-Taneja merged 1 commit intodevfrom
fix-vercel-reranking-type

Conversation

@R-Taneja
Copy link
Copy Markdown

@R-Taneja R-Taneja commented Apr 16, 2026

Summary

  • The Update Vercel Models workflow (run #24465875808) started failing because the AI Gateway API now returns models with type: "reranking", which isn't in the Zod enum.
  • Adds reranking 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.

The Vercel AI Gateway API now returns models with type "reranking",
which caused the generate-vercel script to fail schema validation.

Add "reranking" to the ModelType enum and skip these models in the
main loop, matching the existing pattern for image/video types that
OpenCode does not consume.
@R-Taneja R-Taneja merged commit 915155a into dev Apr 16, 2026
3 checks passed
@R-Taneja R-Taneja deleted the fix-vercel-reranking-type branch April 16, 2026 17:51
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.

1 participant