File size: 774 Bytes
540437a
c9a83ae
 
540437a
 
3eec386
540437a
 
437a804
 
 
540437a
9c72f5f
 
 
 
 
540437a
3eec386
540437a
5db99fa
 
9c72f5f
5db99fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * Shared model-id constants used by session-create call sites and the model
 * picker.
 *
 * Keep in sync with MODEL_OPTIONS in components/Chat/ChatInput.tsx and
 * AVAILABLE_MODELS in backend/routes/agent.py.
 */

export const CLAUDE_OPUS_48_MODEL_PATH = 'anthropic/claude-opus-4.8:fal-ai';
export const CLAUDE_MODEL_PATH = CLAUDE_OPUS_48_MODEL_PATH;
export const GPT_55_MODEL_PATH = 'openai/gpt-5.5:fal-ai';

const PREMIUM_MODEL_PATHS = new Set([
  CLAUDE_OPUS_48_MODEL_PATH,
  GPT_55_MODEL_PATH,
]);

export function isClaudePath(modelPath: string | undefined): boolean {
  return !!modelPath && modelPath.includes('anthropic');
}

export function isPremiumPath(modelPath: string | undefined): boolean {
  return !!modelPath && PREMIUM_MODEL_PATHS.has(modelPath);
}