From e2c8d16174552a6333c45e656349dbd555d5ba21 Mon Sep 17 00:00:00 2001 From: Neeraj Reddy Date: Thu, 28 Aug 2025 21:46:45 +0530 Subject: [PATCH] orders models alphabeically (fixes #200) --- frontend/models/constants.ts | 225 +++++++++++++++++------------------ 1 file changed, 112 insertions(+), 113 deletions(-) diff --git a/frontend/models/constants.ts b/frontend/models/constants.ts index 1e77725a..c400055c 100644 --- a/frontend/models/constants.ts +++ b/frontend/models/constants.ts @@ -2,34 +2,15 @@ import { type Model, ModelCapability, ModelProvider } from "./types"; export const MODELS: Model[] = [ { - id: "google/gemini-2.5-pro", - name: "Gemini 2.5 Pro", - provider: ModelProvider.GOOGLE, - description: "High-performance multimodal model for advanced tasks", - maxTokens: 32768, + id: "baidu/ernie-4.5-21b-a3b", + name: "Baidu ERNIE 4.5 21B A3B", + provider: ModelProvider.OPENROUTER, + description: "ERNIE reasoning model by Baidu", + maxTokens: 8192, pricePer1kTokens: 0.002, - capabilities: [ - ModelCapability.TEXT, - ModelCapability.CODE, - ModelCapability.FUNCTION_CALLING, - ], - isAvailable: true, - isPremium: true - }, - { - id: "google/gemini-2.5-flash", - name: "Gemini 2.5 Flash", - provider: ModelProvider.GOOGLE, - description: "Fast and efficient model for most tasks", - maxTokens: 16385, - pricePer1kTokens: 0.0015, - capabilities: [ - ModelCapability.TEXT, - ModelCapability.CODE, - ModelCapability.FUNCTION_CALLING, - ], + capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: false + isPremium: true, }, { id: "agentica-org/deepcoder-14b-preview:free", @@ -40,18 +21,7 @@ export const MODELS: Model[] = [ pricePer1kTokens: 0, capabilities: [ModelCapability.CODE, ModelCapability.TEXT], isAvailable: true, - isPremium: true - }, - { - id: "deepseek/deepseek-r1:free", - name: "DeepSeek R1 (free)", - provider: ModelProvider.OPENROUTER, - description: "Reasoning-optimized free model", - maxTokens: 8192, - pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT, ModelCapability.CODE], - isAvailable: true, - isPremium: true + isPremium: true, }, { id: "deepseek/deepseek-chat-v3-0324:free", @@ -62,84 +32,103 @@ export const MODELS: Model[] = [ pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "meta-llama/llama-3.3-70b-instruct:free", - name: "Llama 3.3 70B Instruct (free)", + id: "deepseek/deepseek-r1:free", + name: "DeepSeek R1 (free)", provider: ModelProvider.OPENROUTER, - description: "Instruction-tuned model with high reasoning capability", + description: "Reasoning-optimized free model", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "mistralai/mistral-small-24b-instruct-2501:free", - name: "Mistral Small 24B Instruct 2501 (free)", + id: "tngtech/deepseek-r1t-chimera:free", + name: "DeepSeek R1T Chimera (free)", provider: ModelProvider.OPENROUTER, - description: "Efficient small-scale instruction model (free tier)", + description: "Hybrid DeepSeek reasoning model (free tier)", maxTokens: 8192, pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT], + capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "qwen/qwen-2.5-72b-instruct:free", - name: "Qwen 2.5 72B Instruct (free)", + id: "cognitivecomputations/dolphin3.0-mistral-24b:free", + name: "Dolphin 3.0 Mistral 24B (free)", provider: ModelProvider.OPENROUTER, - description: "Large-scale Chinese-English capable instruct model", + description: "Dolphin model based on Mistral 24B (free tier)", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "moonshotai/kimi-k2:free", - name: "Moonshot Kimi K2 (free)", + id: "z-ai/glm-4.5-air:free", + name: "GLM 4.5 Air (free)", provider: ModelProvider.OPENROUTER, - description: "Conversational model from Moonshot (free tier)", + description: "Lightweight multilingual model (free tier)", maxTokens: 8192, pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT], + capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "rekaai/reka-flash-3:free", - name: "Reka Flash 3 (free)", - provider: ModelProvider.OPENROUTER, - description: "Fast lightweight AI model (free tier)", - maxTokens: 8192, - pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT], + id: "google/gemini-2.5-flash", + name: "Gemini 2.5 Flash", + provider: ModelProvider.GOOGLE, + description: "Fast and efficient model for most tasks", + maxTokens: 16385, + pricePer1kTokens: 0.0015, + capabilities: [ + ModelCapability.TEXT, + ModelCapability.CODE, + ModelCapability.FUNCTION_CALLING, + ], isAvailable: true, - isPremium: true + isPremium: false, }, { - id: "z-ai/glm-4.5-air:free", - name: "GLM 4.5 Air (free)", + id: "google/gemini-2.5-pro", + name: "Gemini 2.5 Pro", + provider: ModelProvider.GOOGLE, + description: "High-performance multimodal model for advanced tasks", + maxTokens: 32768, + pricePer1kTokens: 0.002, + capabilities: [ + ModelCapability.TEXT, + ModelCapability.CODE, + ModelCapability.FUNCTION_CALLING, + ], + isAvailable: true, + isPremium: true, + }, + { + id: "google/gemma-2-9b-it:free", + name: "Google Gemma 2 9B IT (free)", provider: ModelProvider.OPENROUTER, - description: "Lightweight multilingual model (free tier)", + description: "Instruction-tuned 9B Gemma model", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "tencent/hunyuan-a13b-instruct:free", - name: "Tencent Hunyuan A13B Instruct (free)", + id: "google/gemma-3-27b-it:free", + name: "Google Gemma 3 27B IT (free)", provider: ModelProvider.OPENROUTER, - description: "Instruction-tuned model from Tencent", + description: "Gemma 3 mid-scale instruction-tuned model", maxTokens: 8192, pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT], + capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { id: "google/gemma-3n-e2b-it:free", @@ -150,95 +139,106 @@ export const MODELS: Model[] = [ pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "google/gemma-3-27b-it:free", - name: "Google Gemma 3 27B IT (free)", + id: "meta-llama/llama-3.3-70b-instruct:free", + name: "Llama 3.3 70B Instruct (free)", provider: ModelProvider.OPENROUTER, - description: "Gemma 3 mid-scale instruction-tuned model", + description: "Instruction-tuned model with high reasoning capability", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "cognitivecomputations/dolphin3.0-mistral-24b:free", - name: "Dolphin 3.0 Mistral 24B (free)", + id: "microsoft/mai-ds-r1:free", + name: "Microsoft MAI DS-R1 (free)", provider: ModelProvider.OPENROUTER, - description: "Dolphin model based on Mistral 24B (free tier)", + description: "Microsoft AI reasoning model", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "google/gemma-2-9b-it:free", - name: "Google Gemma 2 9B IT (free)", + id: "mistralai/mistral-small-24b-instruct-2501:free", + name: "Mistral Small 24B Instruct 2501 (free)", provider: ModelProvider.OPENROUTER, - description: "Instruction-tuned 9B Gemma model", + description: "Efficient small-scale instruction model (free tier)", maxTokens: 8192, pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT, ModelCapability.CODE], + capabilities: [ModelCapability.TEXT], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "shisa-ai/shisa-v2-llama3.3-70b:free", - name: "Shisa v2 Llama 3.3 70B (free)", + id: "moonshotai/kimi-k2:free", + name: "Moonshot Kimi K2 (free)", provider: ModelProvider.OPENROUTER, - description: "Llama 3.3 70B variant optimized by Shisa AI", + description: "Conversational model from Moonshot (free tier)", maxTokens: 8192, pricePer1kTokens: 0, - capabilities: [ModelCapability.TEXT, ModelCapability.CODE], + capabilities: [ModelCapability.TEXT], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "tngtech/deepseek-r1t-chimera:free", - name: "DeepSeek R1T Chimera (free)", + id: "openai/gpt-oss-20b:free", + name: "OpenAI GPT-OSS 20B (free)", provider: ModelProvider.OPENROUTER, - description: "Hybrid DeepSeek reasoning model (free tier)", + description: "Open-source GPT 20B model", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "microsoft/mai-ds-r1:free", - name: "Microsoft MAI DS-R1 (free)", + id: "qwen/qwen-2.5-72b-instruct:free", + name: "Qwen 2.5 72B Instruct (free)", provider: ModelProvider.OPENROUTER, - description: "Microsoft AI reasoning model", + description: "Large-scale Chinese-English capable instruct model", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "baidu/ernie-4.5-21b-a3b", - name: "Baidu ERNIE 4.5 21B A3B", + id: "rekaai/reka-flash-3:free", + name: "Reka Flash 3 (free)", provider: ModelProvider.OPENROUTER, - description: "ERNIE reasoning model by Baidu", + description: "Fast lightweight AI model (free tier)", maxTokens: 8192, - pricePer1kTokens: 0.002, - capabilities: [ModelCapability.TEXT, ModelCapability.CODE], + pricePer1kTokens: 0, + capabilities: [ModelCapability.TEXT], isAvailable: true, - isPremium: true + isPremium: true, }, { - id: "openai/gpt-oss-20b:free", - name: "OpenAI GPT-OSS 20B (free)", + id: "shisa-ai/shisa-v2-llama3.3-70b:free", + name: "Shisa v2 Llama 3.3 70B (free)", provider: ModelProvider.OPENROUTER, - description: "Open-source GPT 20B model", + description: "Llama 3.3 70B variant optimized by Shisa AI", maxTokens: 8192, pricePer1kTokens: 0, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, + }, + { + id: "tencent/hunyuan-a13b-instruct:free", + name: "Tencent Hunyuan A13B Instruct (free)", + provider: ModelProvider.OPENROUTER, + description: "Instruction-tuned model from Tencent", + maxTokens: 8192, + pricePer1kTokens: 0, + capabilities: [ModelCapability.TEXT], + isAvailable: true, + isPremium: true, }, { id: "x-ai/grok-3-mini", @@ -249,7 +249,7 @@ export const MODELS: Model[] = [ pricePer1kTokens: 0.002, capabilities: [ModelCapability.TEXT, ModelCapability.CODE], isAvailable: true, - isPremium: true + isPremium: true, }, ]; @@ -262,4 +262,3 @@ export const getModelById = (id: string): Model | undefined => { export const getAvailableModels = (): Model[] => { return MODELS.filter((model) => model.isAvailable !== false); }; -