🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(model-costs): support alias for all models (#6542)
marliessophieb207712bcd91
diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.tsindex 4807bfbf4d..6af67bc862 100644--- a/packages/shared/src/server/llm/types.ts+++ b/packages/shared/src/server/llm/types.ts@@ -257,7 +257,9 @@ export type ExperimentMetadata = z.infer<typeof ExperimentMetadataSchema>;export const openAIModels = ["gpt-4.1","gpt-4.1-2025-04-14",+ "gpt-4.1-mini","gpt-4.1-mini-2025-04-14",+ "gpt-4.1-nano","gpt-4.1-nano-2025-04-14","o3","o3-2025-04-16",@@ -311,6 +313,7 @@ export const anthropicModels = [export const vertexAIModels = ["gemini-2.5-pro-exp-03-25","gemini-2.0-pro-exp-02-05",+ "gemini-2.0-flash","gemini-2.0-flash-001","gemini-2.0-flash-lite-preview-02-05","gemini-2.0-flash-exp",@@ -323,6 +326,7 @@ export const vertexAIModels = [export const googleAIStudioModels = ["gemini-2.5-pro-exp-03-25","gemini-2.0-flash",+ "gemini-2.0-flash-lite-preview","gemini-2.0-flash-lite-preview-02-05","gemini-2.0-flash-thinking-exp-01-21","gemini-1.5-pro",diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.jsonindex d69af1c507..b991677947 100644--- a/worker/src/constants/default-model-prices.json+++ b/worker/src/constants/default-model-prices.json@@ -1656,5 +1656,81 @@},"tokenizer_config": null,"tokenizer_id": null+ },+ {+ "id": "cm7zrrs1327124dhjtb95w8f13",+ "model_name": "gemini-2.0-pro-exp",+ "match_pattern": "(?i)^(gemini-2.0-pro-exp)(@[a-zA-Z0-9]+)?$",+ "created_at": "2025-04-22T10:11:35.241Z",+ "updated_at": "2025-04-22T10:11:35.241Z",+ "prices": {},+ "tokenizer_config": null,+ "tokenizer_id": null+ },+ {+ "id": "cm7zsrs1327124dhjtb95w8f74",+ "model_name": "gemini-2.0-flash",+ "match_pattern": "(?i)^(gemini-2.0-flash)(@[a-zA-Z0-9]+)?$",+ "created_at": "2025-04-22T10:11:35.241Z",+ "updated_at": "2025-04-22T10:11:35.241Z",+ "prices": {+ "input": 0.1e-6,+ "output": 0.4e-6+ },+ "tokenizer_config": null,+ "tokenizer_id": null+ },+ {+ "id": "cm7ztrs1327124dhjtb95w8f19",+ "model_name": "gemini-2.0-flash-lite-preview",+ "match_pattern": "(?i)^(gemini-2.0-flash-lite-preview)(@[a-zA-Z0-9]+)?$",+ "created_at": "2025-04-22T10:11:35.241Z",+ "updated_at": "2025-04-22T10:11:35.241Z",+ "prices": {+ "input": 0.075e-6,+ "output": 0.3e-6+ },+ "tokenizer_config": null,+ "tokenizer_id": null+ },+ {+ "id": "cm7zxrs1327124dhjtb95w8f45",+ "model_name": "gpt-4.1-nano",+ "match_pattern": "(?i)^(gpt-4.1-nano)$",+ "created_at": "2025-04-22T10:11:35.241Z",+ "updated_at": "2025-04-22T10:11:35.241Z",+ "prices": {+ "input": 0.1e-6,+ "input_cached_tokens": 0.025e-6,+ "input_cached_text_tokens": 0.025e-6,+ "input_cache_read": 0.025e-6,+ "output": 0.4e-6+ },+ "tokenizer_config": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizer_id": "openai"+ },+ {+ "id": "cm7zzrs1327124dhjtb95w8p96",+ "model_name": "gpt-4.1-mini",+ "match_pattern": "(?i)^(gpt-4.1-mini)$",+ "created_at": "2025-04-22T10:11:35.241Z",+ "updated_at": "2025-04-22T10:11:35.241Z",+ "prices": {+ "input": 0.4e-6,+ "input_cached_tokens": 0.1e-6,+ "input_cached_text_tokens": 0.1e-6,+ "input_cache_read": 0.1e-6,+ "output": 1.6e-6+ },+ "tokenizer_config": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizer_id": "openai"}]