Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat: add new claude model (#3865)

Max Deichmann74cbe04fe979
diff --git a/packages/shared/prisma/migrations/20241022110145_add_claude_sonnet_35/migration.sql b/packages/shared/prisma/migrations/20241022110145_add_claude_sonnet_35/migration.sql
new file mode 100644
index 0000000000..557dcacf6a
--- /dev/null
+++ b/packages/shared/prisma/migrations/20241022110145_add_claude_sonnet_35/migration.sql
@@ -0,0 +1,18 @@
+INSERT INTO models (
+ id,
+ project_id,
+ model_name,
+ match_pattern,
+ start_date,
+ input_price,
+ output_price,
+ total_price,
+ unit,
+ tokenizer_id,
+ tokenizer_config
+)
+VALUES
+ -- https://docs.anthropic.com/en/docs/about-claude/models#model-comparison-table
+ ('cm2krz1uf000208jjg5653iud', NULL, 'claude-3.5-haiku-20241022', '(?i)^(claude-3-5-sonnet-20241022|anthropic\.claude-3-5-sonnet-20241022-v2:0|claude-3-5-sonnet-V2@20241022)$', NULL, 0.000003, 0.000015, NULL, 'TOKENS', 'claude', NULL),
+ ('cm2ks2vzn000308jjh4ze1w7q', NULL, 'claude-3.5-haiku-latest', '(?i)^(claude-3-5-sonnet-latest)$', NULL, 0.000003, 0.000015, NULL, 'TOKENS', 'claude', NULL)
+