⬆️ Upgrade AI SDK and add Claude 3.7
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Partykit server / deploy (push) Has been cancelled
Monthly job / clean (push) Has been cancelled

This commit is contained in:
Baptiste Arnaud 2025-02-26 08:15:11 +01:00
parent 8ad53debef
commit c7448eb040
No known key found for this signature in database
14 changed files with 59 additions and 27 deletions

View File

@ -66,7 +66,7 @@
"@uiw/react-codemirror": "4.21.24",
"@upstash/ratelimit": "0.4.3",
"@use-gesture/react": "10.2.27",
"ai": "4.1.15",
"ai": "4.1.46",
"browser-image-compression": "2.0.2",
"canvas-confetti": "1.6.0",
"codemirror": "6.0.1",

View File

@ -18382,6 +18382,7 @@
"model": {
"type": "string",
"enum": [
"claude-3-7-sonnet-latest",
"claude-3-5-haiku-latest",
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20240620",
@ -18665,6 +18666,7 @@
"model": {
"type": "string",
"enum": [
"claude-3-7-sonnet-latest",
"claude-3-5-haiku-latest",
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20240620",

View File

@ -9015,6 +9015,7 @@
"model": {
"type": "string",
"enum": [
"claude-3-7-sonnet-latest",
"claude-3-5-haiku-latest",
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20240620",
@ -9298,6 +9299,7 @@
"model": {
"type": "string",
"enum": [
"claude-3-7-sonnet-latest",
"claude-3-5-haiku-latest",
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20240620",

BIN
bun.lockb

Binary file not shown.

View File

@ -11,7 +11,7 @@
"@typebot.io/zod": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/variables": "workspace:*",
"ai": "4.1.15",
"ai": "4.1.46",
"ky": "1.2.4"
},
"devDependencies": {

View File

@ -15,7 +15,7 @@
"build": "tsup"
},
"devDependencies": {
"@ai-sdk/ui-utils": "1.1.8",
"@ai-sdk/ui-utils": "1.1.16",
"@ark-ui/solid": "4.2.1",
"@fix-webm-duration/fix": "1.0.1",
"@stripe/stripe-js": "1.54.1",

View File

@ -11,7 +11,7 @@
"@typebot.io/ai": "workspace:*",
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@ai-sdk/anthropic": "1.1.6",
"@ai-sdk/anthropic": "1.1.10",
"@typebot.io/zod": "workspace:*"
},
"devDependencies": {

View File

@ -1,4 +1,5 @@
export const anthropicModels = [
"claude-3-7-sonnet-latest",
"claude-3-5-haiku-latest",
"claude-3-5-sonnet-latest",
"claude-3-5-sonnet-20240620",
@ -18,6 +19,7 @@ export const anthropicLegacyModels = [
];
export const anthropicModelLabels = {
"claude-3-7-sonnet-latest": "Claude 3.7 Sonnet",
"claude-3-5-haiku-latest": "Claude 3.5 Haiku",
"claude-3-5-sonnet-latest": "Claude 3.5 Sonnet",
"claude-3-5-sonnet-20240620": "Claude 3.5 Sonnet",

View File

@ -11,7 +11,7 @@
"ky": "1.2.4",
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@ai-sdk/ui-utils": "1.1.8"
"@ai-sdk/ui-utils": "1.1.16"
},
"devDependencies": {
"@typebot.io/tsconfig": "workspace:*"

View File

@ -12,7 +12,7 @@
"@typebot.io/ai": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@ai-sdk/groq": "1.1.7"
"@ai-sdk/groq": "1.1.11"
},
"dependencies": {
"ky": "1.2.4"

View File

@ -13,7 +13,7 @@
"@typebot.io/tsconfig": "workspace:*"
},
"dependencies": {
"@ai-sdk/mistral": "1.1.6",
"@ai-sdk/mistral": "1.1.13",
"@typebot.io/ai": "workspace:*",
"ky": "1.2.4"
}

View File

@ -9,9 +9,9 @@
"./shared/*": "./src/shared/*.ts"
},
"dependencies": {
"@ai-sdk/openai": "1.1.5",
"@ai-sdk/openai": "1.1.14",
"@typebot.io/ai": "workspace:*",
"@ai-sdk/ui-utils": "1.1.8",
"@ai-sdk/ui-utils": "1.1.16",
"openai": "4.81.0",
"@typebot.io/forge": "workspace:*",
"@typebot.io/lib": "workspace:*",

View File

@ -11,6 +11,6 @@
"@typebot.io/forge": "workspace:*",
"@typebot.io/ai": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@ai-sdk/togetherai": "0.1.8"
"@ai-sdk/togetherai": "0.1.13"
}
}

View File

@ -1,6 +1,6 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# bun ./bun.lockb --hash: 07F3EA7C88A2460F-4ff1a2046bf7e21a-B4282F419FBC42DB-02a1649b977e637d
# bun ./bun.lockb --hash: 5617DAA1961E5DE3-819dbea9e02e1b2f-DFA3A015C3043F18-fd5bf4cfc185c7c6
"@ai-sdk/anthropic@1.1.6":
@ -71,6 +71,13 @@
dependencies:
json-schema "^0.4.0"
"@ai-sdk/provider@1.0.9":
version "1.0.9"
resolved "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.9.tgz"
integrity sha512-jie6ZJT2ZR0uVOVCDc9R2xCX5I/Dum/wEK28lx21PJx6ZnFAN9EzD2WsPhcDWfCgGx3OAZZ0GyM3CEobXpa9LA==
dependencies:
json-schema "^0.4.0"
"@ai-sdk/provider-utils@1.0.15":
version "1.0.15"
resolved "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.15.tgz"
@ -111,6 +118,16 @@
nanoid "^3.3.8"
secure-json-parse "^2.7.0"
"@ai-sdk/provider-utils@2.1.10":
version "2.1.10"
resolved "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.1.10.tgz"
integrity sha512-4GZ8GHjOFxePFzkl3q42AU0DQOtTQ5w09vmaWUf/pKFXJPizlnzKSUkF0f+VkapIUfDugyMqPMT1ge8XQzVI7Q==
dependencies:
"@ai-sdk/provider" "1.0.9"
eventsource-parser "^3.0.0"
nanoid "^3.3.8"
secure-json-parse "^2.7.0"
"@ai-sdk/react@0.0.49":
version "0.0.49"
resolved "https://registry.npmjs.org/@ai-sdk/react/-/react-0.0.49.tgz"
@ -120,13 +137,13 @@
"@ai-sdk/ui-utils" "0.0.36"
"@ai-sdk/provider-utils" "1.0.15"
"@ai-sdk/react@1.1.8":
version "1.1.8"
resolved "https://registry.npmjs.org/@ai-sdk/react/-/react-1.1.8.tgz"
integrity sha512-buHm7hP21xEOksnRQtJX9fKbi7cAUwanEBa5niddTDibCDKd+kIXP2vaJGy8+heB3rff+XSW3BWlA8pscK+n1g==
"@ai-sdk/react@1.1.18":
version "1.1.18"
resolved "https://registry.npmjs.org/@ai-sdk/react/-/react-1.1.18.tgz"
integrity sha512-2wlWug6NVAc8zh3pgqtvwPkSNTdA6Q4x9CmrNXCeHcXfJkJ+MuHFQz/I7Wb7mLRajf0DAxsFLIhHyBCEuTkDNw==
dependencies:
"@ai-sdk/provider-utils" "2.1.6"
"@ai-sdk/ui-utils" "1.1.8"
"@ai-sdk/provider-utils" "2.1.10"
"@ai-sdk/ui-utils" "1.1.16"
swr "^2.2.5"
throttleit "2.1.0"
@ -187,6 +204,15 @@
"@ai-sdk/provider-utils" "2.1.6"
zod-to-json-schema "^3.24.1"
"@ai-sdk/ui-utils@1.1.16":
version "1.1.16"
resolved "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.1.16.tgz"
integrity sha512-jfblR2yZVISmNK2zyNzJZFtkgX57WDAUQXcmn3XUBJyo8LFsADu+/vYMn5AOyBi9qJT0RBk11PEtIxIqvByw3Q==
dependencies:
"@ai-sdk/provider" "1.0.9"
"@ai-sdk/provider-utils" "2.1.10"
zod-to-json-schema "^3.24.1"
"@ai-sdk/vue@0.0.41":
version "0.0.41"
resolved "https://registry.npmjs.org/@ai-sdk/vue/-/vue-0.0.41.tgz"
@ -6261,7 +6287,7 @@
"@typebot.io/lib" "packages/lib"
"@typebot.io/variables" "packages/variables"
"@typebot.io/zod" "packages/zod"
ai "4.1.15"
ai "4.1.46"
ky "1.2.4"
"@typebot.io/anthropic-block@packages/forge/blocks/anthropic":
@ -9659,15 +9685,15 @@ ai@3.3.15:
zod-to-json-schema "3.23.2"
"@ai-sdk/provider-utils" "1.0.15"
ai@4.1.15:
version "4.1.15"
resolved "https://registry.npmjs.org/ai/-/ai-4.1.15.tgz"
integrity sha512-sJTRcdAxEicPn8KBzQgtKfaQMqtGYp1GQo1T2QPpcrjT3Li9We7bGOoPUaQ0aGmljcCuRiWdIgSzf5WEIwRTCw==
ai@4.1.46:
version "4.1.46"
resolved "https://registry.npmjs.org/ai/-/ai-4.1.46.tgz"
integrity sha512-VTvAktT69IN1qcNAv7OlcOuR0q4HqUlhkVacrWmMlEoprYykF9EL5RY8IECD5d036Wqg0walwbSKZlA2noHm1A==
dependencies:
"@ai-sdk/provider" "1.0.7"
"@ai-sdk/provider-utils" "2.1.6"
"@ai-sdk/react" "1.1.8"
"@ai-sdk/ui-utils" "1.1.8"
"@ai-sdk/provider" "1.0.9"
"@ai-sdk/provider-utils" "2.1.10"
"@ai-sdk/react" "1.1.18"
"@ai-sdk/ui-utils" "1.1.16"
"@opentelemetry/api" "1.9.0"
jsondiffpatch "0.6.0"
@ -10474,7 +10500,7 @@ buffer-from@^1.0.0:
"@uiw/react-codemirror" "4.21.24"
"@upstash/ratelimit" "0.4.3"
"@use-gesture/react" "10.2.27"
ai "4.1.15"
ai "4.1.46"
browser-image-compression "2.0.2"
canvas-confetti "1.6.0"
codemirror "6.0.1"