@@ -11,8 +11,9 @@ import type { BuiltinProvider } from '../types/provider-account';
1111// ============================================
1212
1313export const AVAILABLE_MODELS = [
14- { value : 'opus' , label : 'Claude Opus 4.6' } ,
15- { value : 'opus-1m' , label : 'Claude Opus 4.6 (1M)' } ,
14+ { value : 'opus' , label : 'Claude Opus 4.8' } ,
15+ { value : 'opus-1m' , label : 'Claude Opus 4.8 (1M)' } ,
16+ { value : 'opus-4.6' , label : 'Claude Opus 4.6' } ,
1617 { value : 'opus-4.5' , label : 'Claude Opus 4.5' } ,
1718 { value : 'sonnet' , label : 'Claude Sonnet 4.6' } ,
1819 { value : 'haiku' , label : 'Claude Haiku 4.5' }
@@ -38,9 +39,10 @@ export interface ModelOption {
3839
3940export const ALL_AVAILABLE_MODELS : ModelOption [ ] = [
4041 // Anthropic
41- { value : 'opus' , label : 'Claude Opus 4.6 ' , provider : 'anthropic' , description : 'Most capable' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 200000 } } ,
42- { value : 'opus-1m' , label : 'Claude Opus 4.6 (1M)' , provider : 'anthropic' , description : '1M context' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 1000000 } } ,
42+ { value : 'opus' , label : 'Claude Opus 4.8 ' , provider : 'anthropic' , description : 'Most capable' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 200000 } } ,
43+ { value : 'opus-1m' , label : 'Claude Opus 4.8 (1M)' , provider : 'anthropic' , description : '1M context' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 1000000 } } ,
4344 { value : 'sonnet' , label : 'Claude Sonnet 4.6' , provider : 'anthropic' , description : 'Balanced' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 200000 } } ,
45+ { value : 'opus-4.6' , label : 'Claude Opus 4.6' , provider : 'anthropic' , description : 'Legacy' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 200000 } } ,
4446 { value : 'opus-4.5' , label : 'Claude Opus 4.5' , provider : 'anthropic' , description : 'Legacy' , capabilities : { thinking : true , tools : true , vision : true , contextWindow : 200000 } } ,
4547 { value : 'haiku' , label : 'Claude Haiku 4.5' , provider : 'anthropic' , description : 'Fast' , capabilities : { thinking : false , tools : true , vision : true , contextWindow : 200000 } } ,
4648 // OpenAI
@@ -76,8 +78,9 @@ export const ALL_AVAILABLE_MODELS: ModelOption[] = [
7678// Maps model shorthand to actual Claude model IDs
7779// Values must match apps/desktop/src/main/ai/config/types.ts MODEL_ID_MAP
7880export const MODEL_ID_MAP : Record < string , string > = {
79- opus : 'claude-opus-4-6' ,
80- 'opus-1m' : 'claude-opus-4-6' ,
81+ opus : 'claude-opus-4-8' ,
82+ 'opus-1m' : 'claude-opus-4-8' ,
83+ 'opus-4.6' : 'claude-opus-4-6' ,
8184 'opus-4.5' : 'claude-opus-4-5-20251101' ,
8285 sonnet : 'claude-sonnet-4-6' ,
8386 haiku : 'claude-haiku-4-5-20251001'
@@ -407,6 +410,15 @@ export interface ProviderModelSpec {
407410export const DEFAULT_MODEL_EQUIVALENCES : Record < string , Partial < Record < BuiltinProvider , ProviderModelSpec > > > = {
408411 // ── Anthropic shorthands ──────────────────────────────────────────────────
409412 'opus' : {
413+ anthropic : { modelId : 'claude-opus-4-8' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
414+ openai : { modelId : 'gpt-5.3-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
415+ google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
416+ xai : { modelId : 'grok-4-0709' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
417+ mistral : { modelId : 'mistral-large-latest' , reasoning : { type : 'none' } } ,
418+ groq : { modelId : 'meta-llama/llama-4-maverick' , reasoning : { type : 'none' } } ,
419+ zai : { modelId : 'glm-5' , reasoning : { type : 'none' } } ,
420+ } ,
421+ 'opus-4.6' : {
410422 anthropic : { modelId : 'claude-opus-4-6' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
411423 openai : { modelId : 'gpt-5.3-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
412424 google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
@@ -417,7 +429,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
417429 } ,
418430 'glm-5' : {
419431 zai : { modelId : 'glm-5' , reasoning : { type : 'none' } } ,
420- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
432+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
421433 openai : { modelId : 'gpt-5.3-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
422434 } ,
423435 'glm-4.7' : {
@@ -426,7 +438,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
426438 openai : { modelId : 'gpt-5.2' , reasoning : { type : 'reasoning_effort' , level : 'medium' } } ,
427439 } ,
428440 'opus-1m' : {
429- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
441+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
430442 openai : { modelId : 'gpt-5.2' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
431443 google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
432444 } ,
@@ -455,7 +467,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
455467 // ── OpenAI models ─────────────────────────────────────────────────────────
456468 'gpt-5.3-codex' : {
457469 openai : { modelId : 'gpt-5.3-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
458- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
470+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
459471 google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
460472 } ,
461473 'gpt-5.2' : {
@@ -465,7 +477,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
465477 } ,
466478 'gpt-5.2-codex' : {
467479 openai : { modelId : 'gpt-5.2-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
468- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
480+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
469481 google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
470482 } ,
471483 'gpt-5.1-codex-mini' : {
@@ -480,7 +492,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
480492 } ,
481493 'o3' : {
482494 openai : { modelId : 'o3' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
483- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
495+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
484496 google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
485497 } ,
486498 'o4-mini' : {
@@ -491,7 +503,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
491503 // ── Google models ─────────────────────────────────────────────────────────
492504 'gemini-2.5-pro' : {
493505 google : { modelId : 'gemini-2.5-pro' , reasoning : { type : 'thinking_toggle' , level : 'high' } } ,
494- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
506+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
495507 openai : { modelId : 'gpt-5.3-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
496508 } ,
497509 'gemini-2.5-flash' : {
@@ -502,7 +514,7 @@ export const DEFAULT_MODEL_EQUIVALENCES: Record<string, Partial<Record<BuiltinPr
502514 // ── xAI models ────────────────────────────────────────────────────────────
503515 'grok-4-0709' : {
504516 xai : { modelId : 'grok-4-0709' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
505- anthropic : { modelId : 'claude-opus-4-6 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
517+ anthropic : { modelId : 'claude-opus-4-8 ' , reasoning : { type : 'adaptive_effort' , level : 'high' } } ,
506518 openai : { modelId : 'gpt-5.3-codex' , reasoning : { type : 'reasoning_effort' , level : 'high' } } ,
507519 } ,
508520 'grok-3-mini' : {
0 commit comments