Skip to content

Open-source status page, incident response and uptime monitoring

562 B
Raw Blame
// Vercel AI Gateway model id (`anthropic/<model>`). Override via
// SLACK_AGENT_MODEL when rolling out a new model version.
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`.
export const SLACK_AGENT_MODEL =
  process.env.SLACK_AGENT_MODEL?.trim() || DEFAULT_MODEL;

const DEFAULT_DRAFT_MODEL = "anthropic/claude-haiku-5.5";

export const SLACK_DRAFT_MODEL =
  process.env.SLACK_DRAFT_MODEL?.trim() || DEFAULT_DRAFT_MODEL;