Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api/security): upgrade AI SDK family to non-vulnerable provider-utils (GHSA-866g-f22w-33x8) (#3786)

Abimael Martell46c5e983963c
diff --git a/apps/api/audit-ci.jsonc b/apps/api/audit-ci.jsonc
index a1b74dd44..b157759a7 100644
--- a/apps/api/audit-ci.jsonc
+++ b/apps/api/audit-ci.jsonc
@@ -8,14 +8,6 @@
// without compatibility approval.
// Owner: team-engineering-reviewers. Tracking: create internal ticket.
// Expires: 2026-06-30.
- "GHSA-v2v4-37r5-5v8g",
- // GHSA-866g-f22w-33x8 (@ai-sdk/provider-utils):
- // Current compatible direct dependency lines still resolve to affected
- // provider-utils 2.x/3.x packages; the available non-affected line requires
- // coordinated major-family AI SDK upgrades. Do not override across majors
- // without compatibility approval.
- // Owner: team-engineering-reviewers. Tracking: create internal ticket.
- // Expires: 2026-06-30.
- "GHSA-866g-f22w-33x8"
+ "GHSA-v2v4-37r5-5v8g"
]
}
diff --git a/apps/api/package.json b/apps/api/package.json
index 3778fd233..dc70958b3 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -73,13 +73,13 @@
"vitest": "^4.1.9"
},
"dependencies": {
- "@ai-sdk/anthropic": "^2.0.41",
- "@ai-sdk/deepinfra": "^1.0.27",
- "@ai-sdk/fireworks": "^1.0.27",
+ "@ai-sdk/anthropic": "^3.0.84",
+ "@ai-sdk/deepinfra": "^2.0.54",
+ "@ai-sdk/fireworks": "^2.0.56",
"@ai-sdk/google": "^3.0.29",
- "@ai-sdk/google-vertex": "^3.0.86",
- "@ai-sdk/groq": "^2.0.28",
- "@ai-sdk/openai": "2.0.64",
+ "@ai-sdk/google-vertex": "^4.0.145",
+ "@ai-sdk/groq": "^3.0.41",
+ "@ai-sdk/openai": "3.0.71",
"@ai-sdk/xai": "^3.0.83",
"@apidevtools/json-schema-ref-parser": "^15.1.2",
"@bull-board/api": "^6.14.0",
@@ -88,7 +88,7 @@
"@dqbd/tiktoken": "^1.0.22",
"@google-cloud/storage": "^7.21.0",
"@mendable/firecrawl-rs": "workspace:*",
- "@openrouter/ai-sdk-provider": "^0.4.5",
+ "@openrouter/ai-sdk-provider": "^2.9.1",
"@sentry/cli": "^2.58.2",
"@sentry/node": "^10.27.0",
"@types/ws": "^8.5.12",
@@ -129,7 +129,7 @@
"lodash": "^4.18.0",
"marked": "^14.1.2",
"multer": "^2.1.1",
- "ollama-ai-provider": "^1.2.0",
+ "ollama-ai-provider-v2": "^3.6.0",
"parse-diff": "^0.11.1",
"pdf-parse": "^1.1.1",
"pg": "^8.16.3",
diff --git a/apps/api/pnpm-lock.yaml b/apps/api/pnpm-lock.yaml
index efb087aa0..ca316e86b 100644
--- a/apps/api/pnpm-lock.yaml
+++ b/apps/api/pnpm-lock.yaml
@@ -44,26 +44,26 @@ importers:
.:
dependencies:
'@ai-sdk/anthropic':
- specifier: ^2.0.41
- version: 2.0.50([email protected])
+ specifier: ^3.0.84
+ version: 3.0.84([email protected])
'@ai-sdk/deepinfra':
- specifier: ^1.0.27
- version: 1.0.29([email protected])
+ specifier: ^2.0.54
+ version: 2.0.54([email protected])
'@ai-sdk/fireworks':
- specifier: ^1.0.27
- version: 1.0.29([email protected])
+ specifier: ^2.0.56
+ version: 2.0.56([email protected])
'@ai-sdk/google':
specifier: ^3.0.29
version: 3.0.52([email protected])
'@ai-sdk/google-vertex':
- specifier: ^3.0.86
- version: 3.0.86([email protected])
+ specifier: ^4.0.145
+ version: 4.0.145([email protected])
'@ai-sdk/groq':
- specifier: ^2.0.28
- version: 2.0.32([email protected])
+ specifier: ^3.0.41
+ version: 3.0.41([email protected])
'@ai-sdk/openai':
- specifier: 2.0.64
- version: 2.0.64([email protected])
+ specifier: 3.0.71
+ version: 3.0.71([email protected])
'@ai-sdk/xai':
specifier: ^3.0.83
version: 3.0.83([email protected])
@@ -89,8 +89,8 @@ importers:
specifier: workspace:*
version: link:native
'@openrouter/ai-sdk-provider':
- specifier: ^0.4.5
- version: 0.4.5([email protected])
+ specifier: ^2.9.1
'@sentry/cli':
specifier: ^2.58.2
version: 2.58.2([email protected])
@@ -211,9 +211,9 @@ importers:
multer:
specifier: ^2.1.1
version: 2.1.1
- ollama-ai-provider:
- specifier: ^1.2.0
- version: 1.2.0([email protected])
+ ollama-ai-provider-v2:
+ specifier: ^3.6.0
parse-diff:
specifier: ^0.11.1
version: 0.11.1
@@ -392,26 +392,20 @@ packages:
'@adraffy/[email protected]':
resolution: {integrity: sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==}
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-21PaHfoLmouOXXNINTsZJsMw+wE5oLR2He/1kq/sKokTVKyq7ObGT1LDk6ahwxaz/GoaNaGankMh+EgVcdv2Cw==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.25.76 || ^4.1.8
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-ih7NV+OFSNWZCF+tYYD7ovvvM+gv7TRKQblpVohg2ipIwC9Y0TirzocJVREzZa/v9luxUwFbsPji++DUDWWxsg==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-BIDaHmCHs6Sr5VUsEkTbbVlAN4GWjg97X9x/IfXyviLtzsXvffui9XIcZugkAi1Ri6FnvI5T5qDGh5YLnSuzRg==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-8p8P5joI2yylD1QtJKssmu6Rw3hWeEDbUBSk76DrvXKTdGspU0bm+F9mGlKXOJV+Bd8d+2mFSrCEX1ryeHEzLw==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-UM2R9U/gXRgk16Onngj71c/BGe4tm2Q2K2fdjM5eiMWF9Thns5xRe99GcYDXSMnIW42ke/RDfoB2GBUPa+fN3w==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-tHPwOiJ9WIJQ4JQwAL33LwjC2MID5FfC5CAGep2a4/CNS9A/IyUy0SRs1wikeAejJyQmSsHzzdA+y+KobNftuQ==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-fzgsoDFC+9LAUZaeIToeGpJ9ridPwqUjFYKT2QpXx6p/WnaQE7yHQyoifJ6MuP/rlDbNt/DK1UQWsAkOtcTk1w==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
@@ -422,14 +416,8 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-rdXVXURmmb8A6ma8aud0xqVujbZ9E7Gt68xj6sMw9erZ+HXpBZHJRcx+LYuoLvLoWw9bSLwQJ0QbaXFM68xG4g==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.25.76 || ^4.1.8
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-c5dck36FjqiVoeeMJQLTEmUheoURcGTU/nBT6iJu8/nZiKFT/y8pD85KMDRB7RerRYaaQOtslR2d6/5PditiRw==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-48wlju7ksjARn6aa1vUZtPFDp+PXadHDpOsE8YHvi4wKVUf7Sxma+WYZNkIDts1b9Alv0BBZlkn5azLNciHD6g==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
@@ -440,14 +428,14 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-5kadf9Mjd4Ep6jVhrIy56UL7DV5HDisW8UakwB11IN7lSLi8Qwb1fB9uO34GT7JxYqE4w7qZXVuelOmTH9m2Mg==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-md+M92ZJuPIMU2p4v1rGLpJJWTmTh/vpJPkMnQbEdcLaPTZxRaroIKSnmL/9UGJV0BORJlHNDJegkcnhVpTmDA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-yKubDxLYtXyGUzkr9lNStf/lE/I+Okc8tmotvyABhsQHHieLKk6oV5fJeRJxhr67Ejhg+FRnwUOxAmjRoFM4dA==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-J3zWdzUdSgE2B8e70i/4b5TGEzDc2Z2xN18AKUs9XCzPF7k6WHyaCCahDUB7JIhRN8Q2nWJ+LQQthl144vq9fg==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
@@ -458,38 +446,14 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-+1mqxn42uB32DPZ6kurSyGAmL3MgCaDpkYU7zNDWI4NLy3Zg97RxTsI1jBCGIqkEVvRZKJlIMYtb89OvMnq3AQ==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-HyuxddF2Yv5G8qxK/0uksAINjQ4h6TpwOqHuqzsCM0u78/JWAW2OXcIplQeB44PIAORgPjbMzrw9DhnPYHMskA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-4GZ8GHjOFxePFzkl3q42AU0DQOtTQ5w09vmaWUf/pKFXJPizlnzKSUkF0f+VkapIUfDugyMqPMT1ge8XQzVI7Q==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.0.0
- peerDependenciesMeta:
- zod:
- optional: true
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-NerKjTuuUUs6glJGaentaXEBH52jRM0pR+cRCzc7aWke/K5jYBD6Frv1JYBpcxS7gnnCqSQZR9woiyS+6jrdjw==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.0.0
- peerDependenciesMeta:
- zod:
- optional: true
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-lsWQY9aDXHitw7C1QRYIbVGmgwyT98TF3MfM8alNIXKpdJdi+W782Rzd9f1RyOfgRmZ08gJ2EYNDhWNK7RqpEA==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.25.76 || ^4.1.8
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-ypv1xXMsgGcNKUP+hglKqtdDuMg68nWHucPPAhIENrbFAI+xCHiqPVN8Zllxyv1TNZwGWUghPxJXU+Mqps0YRQ==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-j6eBAa5oHFZ4U5CxpIV3T4zXNM/BviodNCZCL1qHkA4aqkwK9iQ18TWYz2DZcXpw4BO5pikKzqpXORxb1EnZGA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
@@ -512,16 +476,14 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-f9jSYwKMdXvm44Dmab1vUBnfCDSFfI5rOtvV1W9oKB7WYHR5dGvCC6x68Mk3NUfrdmNoMVHGoh6JT9HCVMlMow==}
- engines: {node: '>=18'}
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-jie6ZJT2ZR0uVOVCDc9R2xCX5I/Dum/wEK28lx21PJx6ZnFAN9EzD2WsPhcDWfCgGx3OAZZ0GyM3CEobXpa9LA==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-uhukHaCBvqkwBHkT8C2PrnqKTCoLn3pdHXqtcR9I8ErH+flbzgW4o7VHSNIup9LRu+WBvZIZDQLsx6rwl2tiOA==}
engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-6o7Y2SeO9vFKB8lArHXehNuusnpddKPk7xqL7T2/b+OvXMRIXUO1rR4wcv1hAFUAT9avGZshty3Wlua/XA7TvA==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-Q3BZ27qfpYqnCYGvE3vt+Qi6LGOF9R5Nmzn+9JoM1lCRsD9mYaIhfJLkSunN48nfGXJ6n+XNV0J/XVpqGQl7Dw==}
engines: {node: '>=18'}
'@ai-sdk/[email protected]':
@@ -1453,11 +1415,12 @@ packages:
'@one-ini/[email protected]':
resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}
- '@openrouter/[email protected]':
- resolution: {integrity: sha512-gbCOcSjNhyWlLHyYZX2rIFnpJi3C2RXNyyzJj+d6pMRfTS/mdvEEOsU66KxK9H8Qju2i9YRLOn/FdQT26K7bIQ==}
+ '@openrouter/[email protected]':
+ resolution: {integrity: sha512-okgq07Vdkro4CB5INbfhwa0e6VR1HS7sidNcfHN/MeXLJvX1JmQCff/vem6tcxwT9r1avyFrXSlfv9B28D/Pag==}
engines: {node: '>=18'}
peerDependencies:
- zod: ^3.0.0
+ ai: ^6.0.0
+ zod: ^3.25.0 || ^4.0.0
'@opentelemetry/[email protected]':
resolution: {integrity: sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg==}
@@ -2317,9 +2280,6 @@ packages:
'@stablelib/[email protected]':
resolution: {integrity: sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==}
- '@standard-schema/[email protected]':
- resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}
-
'@standard-schema/[email protected]':
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
@@ -3298,14 +3258,14 @@ packages:
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
engines: {node: '>=0.8.x'}
- resolution: {integrity: sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==}
- engines: {node: '>=18.0.0'}
-
resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==}
engines: {node: '>=18.0.0'}
+ resolution: {integrity: sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg==}
+ engines: {node: '>=18.0.0'}
+
resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
engines: {node: '>=12.0.0'}
@@ -4105,11 +4065,6 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
- resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
- hasBin: true
-
resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}
engines: {node: '>= 0.6'}
@@ -4178,14 +4133,12 @@ packages:
resolution: {integrity: sha512-9miFgM2OFba7hB+pRgvtV84pYTBaoTHohvmIgiRt6dRIzbwEOIaNaP+dIlGs2fNFoB0SeISs0Jz5WFVRid6Xyg==}
engines: {node: '>=12.20.0'}
- resolution: {integrity: sha512-jTNFruwe3O/ruJeppI/quoOUxG7NA6blG3ZyQj3lei4+NnJo7bi3eIRWqlVpRlu/mbzbFXeJSBuYQWF6pzGKww==}
- engines: {node: '>=18'}
+ resolution: {integrity: sha512-1Om3FVJYhBwkAr5kQ+BX1s/tdVdtVdoFQWrX4PBQHDHPISyGt24CjhtggEjUYpy5ait0YeVfZwEpIYjgD8Ih7Q==}
+ engines: {node: '>=20'}
peerDependencies:
- zod: ^3.0.0
- peerDependenciesMeta:
- zod:
- optional: true
+ ai: ^5.0.0 || ^6.0.0
+ zod: ^4.0.16
resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
@@ -4273,9 +4226,6 @@ packages:
resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
engines: {node: '>= 0.8'}
- resolution: {integrity: sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==}
-
resolution: {integrity: sha512-cbrerZV+6rvdQrrD+iGMcZFEiiSrbv9Tfdkvnusy6y0x0GKBXREFg/Y65GhIfm0tnLntThhzCnfKwp1WRjeCyQ==}
engines: {node: '>=14.0.0'}
@@ -4581,9 +4531,6 @@ packages:
resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
- resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==}
-
resolution: {integrity: sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==}
@@ -5222,30 +5169,24 @@ snapshots:
'@adraffy/[email protected]': {}
dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
+ '@ai-sdk/openai-compatible': 2.0.50([email protected])
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
dependencies:
- '@ai-sdk/openai-compatible': 1.0.28([email protected])
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
- zod: 4.1.12
-
- dependencies:
- '@ai-sdk/openai-compatible': 1.0.28([email protected])
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
+ '@ai-sdk/openai-compatible': 2.0.50([email protected])
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
@@ -5255,39 +5196,34 @@ snapshots:
'@vercel/oidc': 3.1.0
zod: 4.1.12
dependencies:
- '@ai-sdk/anthropic': 2.0.53([email protected])
- '@ai-sdk/google': 2.0.44([email protected])
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
+ '@ai-sdk/anthropic': 3.0.84([email protected])
+ '@ai-sdk/google': 3.0.82([email protected])
+ '@ai-sdk/openai-compatible': 2.0.50([email protected])
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
google-auth-library: 10.5.0
zod: 4.1.12
transitivePeerDependencies:
- supports-color
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
- zod: 4.1.12
-
dependencies:
'@ai-sdk/provider': 3.0.8
'@ai-sdk/provider-utils': 4.0.21([email protected])
zod: 4.1.12
dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
@@ -5296,42 +5232,16 @@ snapshots:
'@ai-sdk/provider-utils': 4.0.23([email protected])
zod: 4.1.12
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.16([email protected])
- zod: 4.1.12
-
- dependencies:
- '@ai-sdk/provider': 1.0.9
- eventsource-parser: 3.0.0
- nanoid: 3.3.8
- secure-json-parse: 2.7.0
- optionalDependencies:
- zod: 4.1.12
-
dependencies:
- '@ai-sdk/provider': 1.0.8
- eventsource-parser: 3.0.0
- nanoid: 3.3.8
- secure-json-parse: 2.7.0
- optionalDependencies:
- zod: 4.1.12
-
- dependencies:
- '@ai-sdk/provider': 2.0.0
- '@standard-schema/spec': 1.0.0
- eventsource-parser: 3.0.6
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
dependencies:
- '@ai-sdk/provider': 2.0.0
- '@standard-schema/spec': 1.0.0
- eventsource-parser: 3.0.6
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
zod: 4.1.12
@@ -5355,15 +5265,14 @@ snapshots:
eventsource-parser: 3.0.6
zod: 4.1.12
- '@ai-sdk/[email protected]':
dependencies:
- json-schema: 0.4.0
-
- '@ai-sdk/[email protected]':
- dependencies:
- json-schema: 0.4.0
+ '@ai-sdk/provider': 3.0.10
+ '@standard-schema/spec': 1.1.0
+ eventsource-parser: 3.1.0
+ zod: 4.1.12
- '@ai-sdk/[email protected]':
+ '@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
@@ -6135,10 +6044,9 @@ snapshots:
'@one-ini/[email protected]': {}
dependencies:
- '@ai-sdk/provider': 1.0.9
- '@ai-sdk/provider-utils': 2.1.10([email protected])
+ ai: 6.0.86([email protected])
zod: 4.1.12
'@opentelemetry/[email protected]':
@@ -7164,8 +7072,6 @@ snapshots:
'@stablelib/[email protected]': {}
- '@standard-schema/[email protected]': {}
-
'@standard-schema/[email protected]': {}
@@ -8082,10 +7988,10 @@ snapshots:
-
+
@@ -8961,8 +8867,6 @@ snapshots:
-
@@ -9019,12 +8923,11 @@ snapshots:
dependencies:
- '@ai-sdk/provider': 1.0.8
- '@ai-sdk/provider-utils': 2.1.9([email protected])
- partial-json: 0.1.7
- optionalDependencies:
+ '@ai-sdk/provider': 3.0.10
+ '@ai-sdk/provider-utils': 4.0.29([email protected])
+ ai: 6.0.86([email protected])
zod: 4.1.12
@@ -9136,8 +9039,6 @@ snapshots:
-
@@ -9455,8 +9356,6 @@ snapshots:
dependencies:
loose-envify: 1.4.0
-
dependencies:
parseley: 0.12.1
diff --git a/apps/api/src/lib/generic-ai.ts b/apps/api/src/lib/generic-ai.ts
index 4c6acd5c3..04133cbb3 100644
--- a/apps/api/src/lib/generic-ai.ts
+++ b/apps/api/src/lib/generic-ai.ts
@@ -1,6 +1,6 @@
import { createOpenAI } from "@ai-sdk/openai";
import { config } from "../config";
-import { createOllama } from "ollama-ai-provider";
+import { createOllama } from "ollama-ai-provider-v2";
import { anthropic } from "@ai-sdk/anthropic";
import { groq } from "@ai-sdk/groq";
import { google } from "@ai-sdk/google";