Download frontend/src/utils/model.ts from Anurag43/ml-intern: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/spaces/Anurag43/ml-intern/resolve/main/frontend/src/utils/model.ts
- Command line
-
hf download hf://spaces/Anurag43/ml-intern/frontend/src/utils/model.ts
-
curl -L -o model.ts https://huggingface.co/spaces/Anurag43/ml-intern/resolve/main/frontend/src/utils/model.ts
774 Bytes
| /** | |
| * 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); | |
| } | |