I had issues with my local project. After testing even with the Weather Template with no modifications made but the model, I confirmed the issue was on handling Vercel Gateway directly through the model router.
Using:
model: "vercel/openai/gpt-oss-120b"
It raises error:
Using:
import { gateway } from "ai";
...
model: gateway("openai/gpt-oss-120b")
It works.
Versions used:
@mastra/core@1.5.0
@mastra/evals@1.1.2
@mastra/libsql@1.5.0
@mastra/loggers@1.0.2
@mastra/memory@1.4.0
@mastra/observability@1.2.0
mastra@1.3.2