Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
model: update model (#2817)
Thibault Le Ouay03fe240ba18e
diff --git a/apps/server/src/routes/mcp/evals/run.ts b/apps/server/src/routes/mcp/evals/run.tsindex 7e5700609..13eeac008 100644--- a/apps/server/src/routes/mcp/evals/run.ts+++ b/apps/server/src/routes/mcp/evals/run.ts@@ -38,7 +38,7 @@ import { type EvalCase, cases } from "./cases";// Resolved through the AI Gateway (`AI_GATEWAY_API_KEY` env). Using// `gateway(...)` instead of a bare string makes the routing path// explicit and gives a clearer error if the gateway is unconfigured.-const MODEL = gateway("anthropic/claude-opus-5");+const MODEL = gateway("anthropic/claude-sonnet-5");// Lenient bar (10/12) accommodates model non-determinism even at// `temperature: 0` — a single flaky tool selection shouldn't tank// the run. Tighten if descriptions stabilize and runs trend towarddiff --git a/apps/server/src/routes/slack/agent.ts b/apps/server/src/routes/slack/agent.tsindex ff191e87e..e18c695ab 100644--- a/apps/server/src/routes/slack/agent.ts+++ b/apps/server/src/routes/slack/agent.ts@@ -11,7 +11,7 @@ import { buildSystemPrompt } from "./system-prompt";// Vercel AI Gateway model id (`anthropic/<model>`). Override via// SLACK_AGENT_MODEL when rolling out a new model version.-const DEFAULT_MODEL = "anthropic/claude-opus-5";+const DEFAULT_MODEL = "anthropic/claude-sonnet-5";// `||` (not `??`) so empty / whitespace-only env values fall back to the// default rather than being passed through to `generateText`.const MODEL = process.env.SLACK_AGENT_MODEL?.trim() || DEFAULT_MODEL;diff --git a/packages/ai/src/resolve-model.test.ts b/packages/ai/src/resolve-model.test.tsindex a1bfb3889..21181ceaf 100644--- a/packages/ai/src/resolve-model.test.ts+++ b/packages/ai/src/resolve-model.test.ts@@ -32,7 +32,7 @@ describe("resolveChatModel", () => {test("gateway path: paid plan resolves the stronger model string", () => {process.env.AI_GATEWAY_API_KEY = "gw-key";expect(resolveChatModel({ plan: "team" })).toBe(- "anthropic/claude-sonnet-4.5",+ "anthropic/claude-sonnet-5",);});diff --git a/packages/ai/src/resolve-model.ts b/packages/ai/src/resolve-model.tsindex b53fa1d76..97916aea0 100644--- a/packages/ai/src/resolve-model.ts+++ b/packages/ai/src/resolve-model.ts@@ -6,7 +6,7 @@ import type { LanguageModel } from "ai";// bare model strings. Free workspaces get the cheaper model because we pay for// their inference; this tiering applies ONLY to the gateway path.const GATEWAY_MODEL_FREE = "anthropic/claude-haiku-4.5";-const GATEWAY_MODEL_PAID = "anthropic/claude-sonnet-4.5";+const GATEWAY_MODEL_PAID = "anthropic/claude-sonnet-5";// `||` (not `??`) so empty / whitespace-only env values fall back instead of// being passed through as a real value.