Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/security-agent/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import type { SecurityAgentConfig } from './types';
* Order matters - first one is the default
*/
export const SECURITY_AGENT_MODELS = [
{ id: 'anthropic/claude-sonnet-4.5', name: 'Claude Sonnet 4.5', free: false },
{ id: 'anthropic/claude-opus-4.6', name: 'Claude Opus 4.6', free: false },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Removing anthropic/claude-opus-4.5 from SECURITY_AGENT_MODELS may break persisted configs

If any stored model_slug values (e.g., in DB/user settings) still reference Opus 4.5, validation/UI selection could fail after this change. Consider keeping 4.5 as a non-default option for backward compatibility, or adding a fallback/translation when loading configs.

{ id: 'anthropic/claude-opus-4.5', name: 'Claude Opus 4.5', free: false },
{ id: 'anthropic/claude-sonnet-4.5', name: 'Claude Sonnet 4.5', free: false },
{ id: 'x-ai/grok-code-fast-1', name: 'Grok Code Fast 1 (free)', free: true },
] as const;

Expand Down