You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: centralize stale model IDs into single CLAUDE_MODELS constant
Hardcoded model IDs (claude-sonnet-4-20250514, claude-opus-4-20250514)
were scattered across 7+ files as fallbacks. These were stale after the
CLI update to v2.1.73 which resolves aliases to the new model IDs
(claude-sonnet-4-6, claude-opus-4-6).
- Add src/lib/model-ids.ts with CLAUDE_MODELS + DEFAULT_MODEL_ID
(client-safe, no fs/db imports — avoids Next.js bundling errors)
- provider-resolver.ts: import + re-export from model-ids.ts, replace
hardcoded envModels and toAiSdkConfig fallback
- model-context.ts: derive context window map from CLAUDE_MODELS
(import from model-ids.ts to stay client-safe)
- skills/search/route.ts: derive MODEL_MAP from CLAUDE_MODELS
- checkin-processor.ts, onboarding-processor.ts, media/jobs/plan/route.ts:
use DEFAULT_MODEL_ID for last-resort fallback
One place to update when new models release.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
constdailyMemoryPrompt=`You maintain daily memory entries for an AI assistant. Given the user's daily check-in answers, generate a daily memory entry for ${today}.
constsoulPrompt=`Based on the following user onboarding answers, generate a concise "soul.md" file that defines an AI assistant's personality, communication style, and behavioral rules. Write in second person ("You are..."). Keep it under 2000 characters. Use markdown headers and bullet points.\n\n${qaText}`;
0 commit comments