Skip to content

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

feat: support claude-3 pricing on google vertex (#2191)

Marc Klingen196dc1bf0059
diff --git a/packages/shared/prisma/migrations/20240530212419_model_price_anthropic_via_google_vertex/migration.sql b/packages/shared/prisma/migrations/20240530212419_model_price_anthropic_via_google_vertex/migration.sql
new file mode 100644
index 0000000000..f4e36d0d8d
--- /dev/null
+++ b/packages/shared/prisma/migrations/20240530212419_model_price_anthropic_via_google_vertex/migration.sql
@@ -0,0 +1,7 @@
+-- Google Vertex uses @ to separate model name and version
+
+UPDATE "public"."models" SET "match_pattern" = '(?i)^(claude-3-haiku(-|@)?20240307)$' WHERE "id" = 'cltr0w45b000008k1407o9qv1';
+
+UPDATE "public"."models" SET "match_pattern" = '(?i)^(claude-3-opus(-|@)?20240229)$' WHERE "id" = 'cltgy0iuw000008le3vod1hhy';
+
+UPDATE "public"."models" SET "match_pattern" = '(?i)^(claude-3-sonnet(-|@)?20240229)$' WHERE "id" = 'cltgy0pp6000108le56se7bl3';
\ No newline at end of file