From 6a196943864f310c3689073fdfb55e21a64ea465 Mon Sep 17 00:00:00 2001 From: Harald Schilly Date: Tue, 14 Jan 2025 15:11:49 +0100 Subject: [PATCH 1/3] npm: updating a couple of server packages like langchain (+ extensions), openai, nodemailer, etc. --- src/packages/package.json | 4 +- src/packages/pnpm-lock.yaml | 1112 ++++++++++++++++-------------- src/packages/server/package.json | 20 +- 3 files changed, 605 insertions(+), 531 deletions(-) diff --git a/src/packages/package.json b/src/packages/package.json index a3282945ac..babeecd7ec 100644 --- a/src/packages/package.json +++ b/src/packages/package.json @@ -20,8 +20,8 @@ "undici@<5.28.3": "^5.28.4", "postcss@<8.4.31": "^8.4.31", "retry-request@<7.0.1": "^7.0.2", - "@langchain/core": "^0.3.17", - "langchain": "^0.2.19", + "@langchain/core": "^0.3.30", + "langchain": "^0.3.11", "katex@<0.16.9": "^0.16.10", "nanoid@<3.3.8": "^3.3.8" } diff --git a/src/packages/pnpm-lock.yaml b/src/packages/pnpm-lock.yaml index 9cca7b8414..a5f93218cc 100644 --- a/src/packages/pnpm-lock.yaml +++ b/src/packages/pnpm-lock.yaml @@ -10,8 +10,8 @@ overrides: undici@<5.28.3: ^5.28.4 postcss@<8.4.31: ^8.4.31 retry-request@<7.0.1: ^7.0.2 - '@langchain/core': ^0.3.17 - langchain: ^0.2.19 + '@langchain/core': ^0.3.30 + langchain: ^0.3.11 katex@<0.16.9: ^0.16.10 nanoid@<3.3.8: ^3.3.8 @@ -188,7 +188,7 @@ importers: version: 8.7.0 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) immutable: specifier: ^4.3.0 version: 4.3.7 @@ -393,7 +393,7 @@ importers: version: 1.11.13 debug: specifier: ^4.3.4 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) direction: specifier: ^1.0.4 version: 1.0.4 @@ -793,7 +793,7 @@ importers: version: 2.8.5 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) escape-html: specifier: ^1.0.3 version: 1.0.3 @@ -832,7 +832,7 @@ importers: version: 2.1.2 next: specifier: 14.2.22 - version: 14.2.22(@babel/core@7.25.8)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0) + version: 14.2.22(@babel/core@7.25.8)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0) nyc: specifier: ^15.1.0 version: 15.1.0 @@ -968,7 +968,7 @@ importers: version: 8.7.0 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) enchannel-zmq-backend: specifier: ^9.1.23 version: 9.1.23(rxjs@7.8.1) @@ -1101,7 +1101,7 @@ importers: version: 2.1.2 next: specifier: 14.2.22 - version: 14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0) + version: 14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0) next-remove-imports: specifier: ^1.0.11 version: 1.0.12(webpack@5.96.1) @@ -1110,7 +1110,7 @@ importers: version: 6.0.0-beta.4(zod@3.23.8) next-translate: specifier: ^2.6.2 - version: 2.6.2(next@14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0))(react@18.3.1) + version: 2.6.2(next@14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0))(react@18.3.1) password-hash: specifier: ^1.2.2 version: 1.2.2 @@ -1243,7 +1243,7 @@ importers: version: 3.0.0 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) diskusage: specifier: ^1.1.3 version: 1.2.0 @@ -1375,23 +1375,23 @@ importers: specifier: ^1.2.1 version: 1.4.1 '@langchain/anthropic': - specifier: ^0.3.3 - version: 0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) - '@langchain/community': specifier: ^0.3.11 - version: 0.3.11(@google-ai/generativelanguage@2.7.0(encoding@0.1.13))(@google-cloud/storage@7.13.0(encoding@0.1.13))(@ibm-cloud/watsonx-ai@1.1.3)(@langchain/anthropic@0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(@langchain/google-genai@0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8))(@langchain/mistralai@0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@qdrant/js-client-rest@1.12.0(typescript@5.6.3))(axios@1.7.7)(encoding@0.1.13)(fast-xml-parser@4.5.0)(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@137.1.0(encoding@0.1.13))(handlebars@4.7.8)(ibm-cloud-sdk-core@5.1.0)(ignore@5.3.1)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openai@4.63.0(encoding@0.1.13)(zod@3.23.8))(pg@8.13.1)(ws@8.18.0) + version: 0.3.11(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + '@langchain/community': + specifier: ^0.3.24 + version: 0.3.24(x37dxigjnxhorsczml2unqokyu) '@langchain/core': - specifier: ^0.3.17 - version: 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + specifier: ^0.3.30 + version: 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) '@langchain/google-genai': - specifier: ^0.1.0 - version: 0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8) + specifier: ^0.1.6 + version: 0.1.6(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8) '@langchain/mistralai': - specifier: ^0.1.1 - version: 0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + specifier: ^0.2.0 + version: 0.2.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))) '@langchain/openai': - specifier: ^0.3.7 - version: 0.3.7(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + specifier: ^0.3.17 + version: 0.3.17(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) '@node-saml/passport-saml': specifier: ^4.0.4 version: 4.0.4 @@ -1405,11 +1405,11 @@ importers: specifier: ^2.1.4 version: 2.1.4 '@sendgrid/client': - specifier: ^8.1.3 - version: 8.1.3 + specifier: ^8.1.4 + version: 8.1.4 '@sendgrid/mail': - specifier: ^8.1.3 - version: 8.1.3 + specifier: ^8.1.4 + version: 8.1.4 '@types/async': specifier: ^2.0.43 version: 2.4.2 @@ -1525,11 +1525,11 @@ importers: specifier: ^5.0.13 version: 5.0.13(encoding@0.1.13) nodemailer: - specifier: ^6.9.14 - version: 6.9.15 + specifier: ^6.9.16 + version: 6.9.16 openai: - specifier: ^4.52.1 - version: 4.63.0(encoding@0.1.13)(zod@3.23.8) + specifier: ^4.78.1 + version: 4.78.1(encoding@0.1.13)(zod@3.23.8) parse-domain: specifier: ^5.0.0 version: 5.0.0(encoding@0.1.13) @@ -1819,7 +1819,7 @@ importers: version: 3.0.0 debug: specifier: ^4.3.4 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) events: specifier: 3.3.0 version: 3.3.0 @@ -1871,7 +1871,7 @@ importers: version: 1.0.0 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) primus: specifier: ^8.0.9 version: 8.0.9 @@ -1951,7 +1951,7 @@ importers: version: 3.0.0 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -1997,7 +1997,7 @@ importers: version: 1.11.13 debug: specifier: ^4.3.2 - version: 4.3.7(supports-color@9.4.0) + version: 4.3.7(supports-color@8.1.1) decimal.js-light: specifier: ^2.5.1 version: 2.5.1 @@ -2172,6 +2172,9 @@ packages: '@anthropic-ai/sdk@0.27.3': resolution: {integrity: sha512-IjLt0gd3L4jlOfilxVXTifn42FnVffMgDC04RJK1KDZpmkBWLv0XC92MVVmkxrFZNS/7l3xWgP/I3nqtX1sQHw==} + '@anthropic-ai/sdk@0.32.1': + resolution: {integrity: sha512-U9JwTrDvdQ9iWuABVsMLj8nJVwAyQz6QXvgLsVhryhCEPkLsbcP/MXxm+jYcAwLoV8ESbaTTjnD4kuAFa+Hyjg==} + '@babel/code-frame@7.24.7': resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} engines: {node: '>=6.9.0'} @@ -2535,6 +2538,21 @@ packages: '@braintree/sanitize-url@7.1.0': resolution: {integrity: sha512-o+UlMLt49RvtCASlOMW0AkHnabN9wR9rwCCherxO0yG4Npy34GkvrAqdXQvrhNs+jh+gkK8gB8Lf05qL/O7KWg==} + '@browserbasehq/sdk@2.0.0': + resolution: {integrity: sha512-BdPlZyn0dpXlL70gNK4acpqWIRB+edo2z0/GalQdWghRq8iQjySd9fVIF3evKH1p2wCYekZJRK6tm29YfXB67g==} + + '@browserbasehq/stagehand@1.9.0': + resolution: {integrity: sha512-0wIFnwOVnUEgVkPKW0RX7NoOt98qaRJ8+l1m9ppk1f5E03GtefDQTMiQwwT9WQn163bpZT5cOhyA1I3jZNfFeA==} + peerDependencies: + '@playwright/test': ^1.42.1 + deepmerge: ^4.3.1 + dotenv: ^16.4.5 + openai: ^4.62.1 + zod: ^3.23.8 + + '@cfworker/json-schema@4.1.0': + resolution: {integrity: sha512-/vYKi/qMxwNsuIJ9WGWwM2rflY40ZenK3Kh4uR5vB9/Nz12Y7IUN/Xf4wDA7vzPfw0VNh3b/jz4+MjcVgARKJg==} + '@chevrotain/cst-dts-gen@11.0.3': resolution: {integrity: sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ==} @@ -2826,6 +2844,9 @@ packages: peerDependencies: react: '>=16.8.0' + '@emnapi/runtime@1.3.1': + resolution: {integrity: sha512-kEBmG8KyqtxJZv+ygbEim+KCGtIq1fC22Ms3S4ziXmYKm8uyoLX0MHONVKwp+9opg390VaKRNt4a7A9NwmpNhw==} + '@emotion/hash@0.8.0': resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} @@ -2850,10 +2871,6 @@ packages: resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@fastify/busboy@2.1.1': - resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==} - engines: {node: '>=14'} - '@formatjs/cli@6.2.12': resolution: {integrity: sha512-bt1NEgkeYN8N9zWcpsPu3fZ57vv+biA+NtIQBlyOZnCp1bcvh+vNTXvmwF4C5qxqDtCylpOIb3yi3Ktgp4v0JQ==} engines: {node: '>= 16'} @@ -2956,8 +2973,8 @@ packages: resolution: {integrity: sha512-pevEyZCb0Oc+dYNlSberW8oZBm4ofeTD5wN01TowQMhTwdAbGAnJMtQzoklh6Blq2AKsx8Ox6FWa44KioZLZiA==} engines: {node: '>=18.0.0'} - '@google/generative-ai@0.7.1': - resolution: {integrity: sha512-WTjMLLYL/xfA5BW6xAycRPiAX7FNHKAxrid/ayqC1QMam0KAK0NbMeS9Lubw80gVg5xFMLE+H7pw4wdNzTOlxw==} + '@google/generative-ai@0.21.0': + resolution: {integrity: sha512-7XhUbtnlkSEZK15kN3t+tzIMxsbKm/dSkKBFalj+20NvPKe1kBY7mR2P7vuijEn+f06z5+A8bVGKO0v39cr6Wg==} engines: {node: '>=18.0.0'} '@grpc/grpc-js@1.10.8': @@ -2982,8 +2999,8 @@ packages: resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} deprecated: Use @eslint/object-schema instead - '@ibm-cloud/watsonx-ai@1.1.3': - resolution: {integrity: sha512-1RF/pqjpzLdwDaoCw5lkulbiwPM5Gb50ZRtWzHNg3cmHHZxOqhmTKlhxvx+pNX/VQ96zvPKZTVI/Ovp/2VObuw==} + '@ibm-cloud/watsonx-ai@1.3.1': + resolution: {integrity: sha512-oW2r+Oxd7MVE/Q87/sPBCQufQfUtsorGNNgCyA4iW6T3vcxfDyIBInkr3JxnVM7MXp4k2CEXDQmZrRl94mk2rQ==} engines: {node: '>=18.0.0'} '@iconify/types@2.0.0': @@ -2997,6 +3014,111 @@ packages: peerDependencies: react: '*' + '@img/sharp-darwin-arm64@0.33.5': + resolution: {integrity: sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.33.5': + resolution: {integrity: sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-darwin-arm64@1.0.4': + resolution: {integrity: sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==} + cpu: [arm64] + os: [darwin] + + '@img/sharp-libvips-darwin-x64@1.0.4': + resolution: {integrity: sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-linux-arm64@1.0.4': + resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linux-arm@1.0.5': + resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==} + cpu: [arm] + os: [linux] + + '@img/sharp-libvips-linux-s390x@1.0.4': + resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==} + cpu: [s390x] + os: [linux] + + '@img/sharp-libvips-linux-x64@1.0.4': + resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==} + cpu: [x64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-arm64@1.0.4': + resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==} + cpu: [arm64] + os: [linux] + + '@img/sharp-libvips-linuxmusl-x64@1.0.4': + resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==} + cpu: [x64] + os: [linux] + + '@img/sharp-linux-arm64@0.33.5': + resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + + '@img/sharp-linux-arm@0.33.5': + resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm] + os: [linux] + + '@img/sharp-linux-s390x@0.33.5': + resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [s390x] + os: [linux] + + '@img/sharp-linux-x64@0.33.5': + resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + + '@img/sharp-linuxmusl-arm64@0.33.5': + resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + + '@img/sharp-linuxmusl-x64@0.33.5': + resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + + '@img/sharp-wasm32@0.33.5': + resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [wasm32] + + '@img/sharp-win32-ia32@0.33.5': + resolution: {integrity: sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ia32] + os: [win32] + + '@img/sharp-win32-x64@0.33.5': + resolution: {integrity: sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [win32] + '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -3161,14 +3283,14 @@ packages: '@jupyterlab/statedb@3.5.2': resolution: {integrity: sha512-BrxWSbCJ5MvDn0OiTC/Gv8vuPFIz6mbiQ6JTojcknK1YxDfMOqE5Hvl+f/oODSGnoaVu3s2czCjTMo1sPDjW8g==} - '@langchain/anthropic@0.3.3': - resolution: {integrity: sha512-OvnSV3Tjhb87n7CxWzIcJqcJEM4qoFDYYt6Rua7glQF/Ud5FBTurlzoMunLPTQeF5GdPiaOwP3nUw6I9gF7ppw==} + '@langchain/anthropic@0.3.11': + resolution: {integrity: sha512-rYjDZjMwVQ+cYeJd9IoSESdkkG8fc0m3siGRYKNy6qgYMnqCz8sUPKBanXwbZAs6wvspPCGgNK9WONfaCeX97A==} engines: {node: '>=18'} peerDependencies: - '@langchain/core': ^0.3.17 + '@langchain/core': ^0.3.30 - '@langchain/community@0.3.11': - resolution: {integrity: sha512-hgnqsgWAhfUj9Kp0y+FGxlKot/qJFxat9GfIPJSJU4ViN434PgeMAQK53tkGZ361E2Zoo1V4RoGlSw4AjJILiA==} + '@langchain/community@0.3.24': + resolution: {integrity: sha512-lHio63Bi5mxO6aMzLfXq5ouo6gKpSs7JWJ3Fi2Sl1fdH0AdCEqQZyLG0Fjinx/T815aPBb8eUIdjUlQIrPE2eA==} engines: {node: '>=18'} peerDependencies: '@arcjet/redact': ^v1.0.0-alpha.23 @@ -3185,6 +3307,7 @@ packages: '@azure/search-documents': ^12.0.0 '@azure/storage-blob': ^12.15.0 '@browserbasehq/sdk': '*' + '@browserbasehq/stagehand': ^1.0.0 '@clickhouse/client': ^0.2.5 '@cloudflare/ai': '*' '@datastax/astra-db-ts': ^1.0.0 @@ -3198,8 +3321,10 @@ packages: '@google-cloud/storage': ^6.10.1 || ^7.7.0 '@gradientai/nodejs-sdk': ^1.2.0 '@huggingface/inference': ^2.6.4 + '@huggingface/transformers': ^3.2.3 '@ibm-cloud/watsonx-ai': '*' - '@langchain/core': ^0.3.17 + '@lancedb/lancedb': ^0.12.0 + '@langchain/core': ^0.3.30 '@layerup/layerup-security': ^1.5.12 '@libsql/client': ^0.14.0 '@mendable/firecrawl-js': ^1.4.3 @@ -3226,11 +3351,10 @@ packages: '@upstash/ratelimit': ^1.1.3 || ^2.0.3 '@upstash/redis': ^1.20.6 '@upstash/vector': ^1.1.1 - '@vercel/kv': ^0.2.3 - '@vercel/postgres': ^0.5.0 + '@vercel/kv': '*' + '@vercel/postgres': '*' '@writerai/writer-sdk': ^0.40.2 '@xata.io/client': ^0.28.0 - '@xenova/transformers': ^2.17.2 '@zilliz/milvus2-sdk-node': '>=2.3.5' apify-client: ^2.7.1 assemblyai: ^4.6.0 @@ -3251,6 +3375,7 @@ packages: duck-duck-scrape: ^2.2.5 epub2: ^3.0.1 faiss-node: ^0.5.1 + fast-xml-parser: '*' firebase-admin: ^11.9.0 || ^12.0.0 google-auth-library: '*' googleapis: '*' @@ -3272,6 +3397,7 @@ packages: neo4j-driver: '*' notion-to-md: ^3.1.0 officeparser: ^4.0.4 + openai: '*' pdf-parse: 1.1.1 pg: ^8.11.0 pg-copy-streams: ^6.0.5 @@ -3287,13 +3413,12 @@ packages: typeorm: ^0.3.20 typesense: ^1.5.3 usearch: ^1.1.1 - vectordb: ^0.1.4 voy-search: 0.6.2 weaviate-ts-client: '*' web-auth-library: ^1.0.3 + word-extractor: '*' ws: ^8.14.2 - youtube-transcript: ^1.0.6 - youtubei.js: ^9.1.0 + youtubei.js: '*' peerDependenciesMeta: '@arcjet/redact': optional: true @@ -3349,6 +3474,10 @@ packages: optional: true '@huggingface/inference': optional: true + '@huggingface/transformers': + optional: true + '@lancedb/lancedb': + optional: true '@layerup/layerup-security': optional: true '@libsql/client': @@ -3409,8 +3538,6 @@ packages: optional: true '@xata.io/client': optional: true - '@xenova/transformers': - optional: true '@zilliz/milvus2-sdk-node': optional: true apify-client: @@ -3451,6 +3578,8 @@ packages: optional: true faiss-node: optional: true + fast-xml-parser: + optional: true firebase-admin: optional: true google-auth-library: @@ -3521,50 +3650,46 @@ packages: optional: true usearch: optional: true - vectordb: - optional: true voy-search: optional: true weaviate-ts-client: optional: true web-auth-library: optional: true - ws: + word-extractor: optional: true - youtube-transcript: + ws: optional: true youtubei.js: optional: true - '@langchain/core@0.3.17': - resolution: {integrity: sha512-o4lgmRcEqAyioP4Snxat1DGIT0oasOYsfo9uvAxVjwGq+XRicXm+bO3smCBSiiPQnd6jJ9ULWJlI0RFUV1oNqQ==} + '@langchain/core@0.3.30': + resolution: {integrity: sha512-HFUpjJ6FkPSSeLKzCLKxba4VN1DKnrXRmjaWHDb5KUyE9DZrqak3Sh6k2dkzXDJIcdd/uNeeQGFyQnubVEMkPw==} engines: {node: '>=18'} - '@langchain/google-genai@0.1.0': - resolution: {integrity: sha512-6rIba77zJVMj+048tLfkCBrkFbfAMiT+AfLEsu5s+CFoFmXMiI/dbKeDL4vhUWrJVb9uL4ZZyrnl0nKxyEKYgA==} + '@langchain/google-genai@0.1.6': + resolution: {integrity: sha512-LF3fan9pvgFa1vw2/IYGhi5KjppE0OvPFX3QQBUshBLpXWERP+BSpSD7jcXyqm9Kf7DcFj7w5/2knKeEwih8Xg==} engines: {node: '>=18'} peerDependencies: - '@langchain/core': ^0.3.17 + '@langchain/core': ^0.3.30 - '@langchain/mistralai@0.1.1': - resolution: {integrity: sha512-gnHdQRfn+iBReKD0u1nydGqHgVOjnKHpd0Q2qEN61ZuxiqFOOauWYkrbyml7tzcOdMv2vUAr5+pjpXip+ez59w==} + '@langchain/mistralai@0.2.0': + resolution: {integrity: sha512-VdfbKZopAuSXf/vlXbriGWLK3c7j5s47DoB3S31xpprY2BMSKZZiX9vE9TsgxMfAPuIDPIYcfgU7p1upvTYt8g==} engines: {node: '>=18'} peerDependencies: - '@langchain/core': ^0.3.17 - - '@langchain/openai@0.2.11': - resolution: {integrity: sha512-Pu8+WfJojCgSf0bAsXb4AjqvcDyAWyoEB1AoCRNACgEnBWZuitz3hLwCo9I+6hAbeg3QJ37g82yKcmvKAg1feg==} - engines: {node: '>=18'} + '@langchain/core': ^0.3.30 - '@langchain/openai@0.3.7': - resolution: {integrity: sha512-3Jhyy2uKkymYu1iVK18sG2ASZVg0EQcmtTuEPVnrrFGYJ0EIPufejm6bE1ebOHZRc50kSxQwRFCAGrMatNtUiQ==} + '@langchain/openai@0.3.17': + resolution: {integrity: sha512-uw4po32OKptVjq+CYHrumgbfh4NuD7LqyE+ZgqY9I/LrLc6bHLMc+sisHmI17vgek0K/yqtarI0alPJbzrwyag==} engines: {node: '>=18'} peerDependencies: - '@langchain/core': ^0.3.17 + '@langchain/core': ^0.3.30 - '@langchain/textsplitters@0.0.0': - resolution: {integrity: sha512-3hPesWomnmVeYMppEGYbyv0v/sRUugUdlFBNn9m1ueJYHAIKbvCErkWxNUH3guyKKYgJVrkvZoQxcd9faucSaw==} + '@langchain/textsplitters@0.1.0': + resolution: {integrity: sha512-djI4uw9rlkAb5iMhtLED+xJebDdAG935AdP4eRTB02R7OB/act55Bj9wsskhZsvuyQRpO4O1wQOp85s6T6GWmw==} engines: {node: '>=18'} + peerDependencies: + '@langchain/core': ^0.3.30 '@leichtgewicht/ip-codec@2.0.5': resolution: {integrity: sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==} @@ -3681,8 +3806,10 @@ packages: react: '>= 15' react-dom: '>= 15' - '@mistralai/mistralai@0.4.0': - resolution: {integrity: sha512-KmFzNro1RKxIFh19J3osmUQhucefBBauMXN5fa9doG6dT9OHR/moBvvn+riVlR7c0AVfuxO8Dfa03AyLYYzbyg==} + '@mistralai/mistralai@1.3.6': + resolution: {integrity: sha512-2y7U5riZq+cIjKpxGO9y417XuZv9CpBXEAvbjRMzWPGhXY7U1ZXj4VO4H9riS2kFZqTR2yLEKSE6/pGWVVIqgQ==} + peerDependencies: + zod: '>= 3' '@module-federation/runtime-tools@0.5.1': resolution: {integrity: sha512-nfBedkoZ3/SWyO0hnmaxuz0R0iGPSikHZOAZ0N/dVSQaIzlffUo35B5nlC2wgWIc0JdMZfkwkjZRrnuuDIJbzg==} @@ -3967,6 +4094,11 @@ packages: resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@playwright/test@1.49.1': + resolution: {integrity: sha512-Ky+BVzPz8pL6PQxHqNRW1k3mIyv933LML7HktS8uik0bUXNCdPhoS/kLihiO1tMf/egaJb4IutXd7UywvXEW+g==} + engines: {node: '>=18'} + hasBin: true + '@plotly/d3-sankey-circular@0.33.1': resolution: {integrity: sha512-FgBV1HEvCr3DV7RHhDsPXyryknucxtfnLwPtCKKxdolKyTFYoLX/ibEfX39iFYIL7DYbVeRtP43dbFcrHNE+KQ==} @@ -4019,16 +4151,6 @@ packages: '@protobufjs/utf8@1.1.0': resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} - '@qdrant/js-client-rest@1.12.0': - resolution: {integrity: sha512-H8VokZq2DYe9yfKG3c7xPNR+Oc5ZvwMUtPEr1wUO4xVi9w5P89MScJaCc9UW8mS5AR+/Y1h2t1YjSxBFPIYT2Q==} - engines: {node: '>=18.0.0', pnpm: '>=8'} - peerDependencies: - typescript: '>=4.7' - - '@qdrant/openapi-typescript-fetch@1.2.6': - resolution: {integrity: sha512-oQG/FejNpItrxRHoyctYvT3rwGZOnK4jr3JdppO/c78ktDvkWiPXPHNsrDf33K9sZdRb6PR7gi4noIapu5q4HA==} - engines: {node: '>=18.0.0', pnpm: '>=8'} - '@rc-component/async-validator@5.0.4': resolution: {integrity: sha512-qgGdcVIF604M9EqjNF0hbUTz42bz/RDtxWdWuU5EQe3hi7M8ob54B6B35rOsvX5eSvIHIzT9iH1R3n+hk3CGfg==} engines: {node: '>=14.x'} @@ -4187,21 +4309,18 @@ packages: react-refresh: optional: true - '@sendgrid/client@8.1.3': - resolution: {integrity: sha512-mRwTticRZIdUTsnyzvlK6dMu3jni9ci9J+dW/6fMMFpGRAJdCJlivFVYQvqk8kRS3RnFzS7sf6BSmhLl1ldDhA==} + '@sendgrid/client@8.1.4': + resolution: {integrity: sha512-VxZoQ82MpxmjSXLR3ZAE2OWxvQIW2k2G24UeRPr/SYX8HqWLV/8UBN15T2WmjjnEb5XSmFImTJOKDzzSeKr9YQ==} engines: {node: '>=12.*'} '@sendgrid/helpers@8.0.0': resolution: {integrity: sha512-Ze7WuW2Xzy5GT5WRx+yEv89fsg/pgy3T1E3FS0QEx0/VvRmigMZ5qyVGhJz4SxomegDkzXv/i0aFPpHKN8qdAA==} engines: {node: '>= 12.0.0'} - '@sendgrid/mail@8.1.3': - resolution: {integrity: sha512-Wg5iKSUOER83/cfY6rbPa+o3ChnYzWwv1OcsR8gCV8SKi+sUPIMroildimlnb72DBkQxcbylxng1W7f0RIX7MQ==} + '@sendgrid/mail@8.1.4': + resolution: {integrity: sha512-MUpIZykD9ARie8LElYCqbcBhGGMaA/E6I7fEcG7Hc2An26QJyLtwOaKQ3taGp8xO8BICPJrSKuYV4bDeAJKFGQ==} engines: {node: '>=12.*'} - '@sevinf/maybe@0.5.0': - resolution: {integrity: sha512-ARhyoYDnY1LES3vYI0fiG6e9esWfTNcXcO6+MPJJXcnyMV3bim4lnFt45VXouV7y82F4x3YH8nOQ6VztuvUiWg==} - '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} @@ -6479,8 +6598,8 @@ packages: resolution: {integrity: sha512-xHF8EP4XH/Ba9fvAF2LDd5O3IITVolerVV6xvkxoM8zlGEiCUrggpAnHyOoKJKCrhvPcGATFAUwIujj7bRG5UA==} hasBin: true - dotenv@16.4.5: - resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} + dotenv@16.4.7: + resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==} engines: {node: '>=12'} draw-svg-path@1.0.0: @@ -7139,6 +7258,11 @@ packages: fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + fsevents@2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -7655,8 +7779,8 @@ packages: resolution: {integrity: sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A==} engines: {node: '>=10.18'} - ibm-cloud-sdk-core@5.1.0: - resolution: {integrity: sha512-KJCbPz3tiXB1NGAD7cL4JtwpWV8yd/C7jsaHsxvedMo2ZblNG8emMyvSpGhiKAQVZmi3c0ujz6eJdy22NHuUWQ==} + ibm-cloud-sdk-core@5.1.1: + resolution: {integrity: sha512-19nSrd8UcCP4q3974wtY+gxwOcD9cQfeVUkpGRWoHs4D7bN+SB5g0m5aPAPa6QjwqDY68EYkQUboEt7dTp+4jQ==} engines: {node: '>=18'} iconv-lite@0.4.24: @@ -8527,185 +8651,57 @@ packages: resolution: {integrity: sha512-EJnr2MHCl5jsE53GtzpNdJ9WTf5g2y+6YKZiQ38txxQkgp1Ewjbg7mDiPUIhfSlDgLUbg3s3qtPpct04JA9yYg==} engines: {node: '>=18.0.0'} - langchain@0.2.20: - resolution: {integrity: sha512-tbels6Rr524iMM3VOQ4aTGnEOOjAA1BQuBR8u/8gJ2yT48lMtIQRAN32Y4KVjKK+hEWxHHlmLBrtgLpTphFjNA==} + langchain@0.3.11: + resolution: {integrity: sha512-PgAG4ZLeuSRkKsyf98cmWGdwKv3I1hOFC8a4fr7e+bm7E+F6Fx6xUkgbuC78ff0N/Cjs5BBryZIFMrqoKPqsvg==} engines: {node: '>=18'} peerDependencies: - '@aws-sdk/client-s3': '*' - '@aws-sdk/client-sagemaker-runtime': '*' - '@aws-sdk/client-sfn': '*' - '@aws-sdk/credential-provider-node': '*' - '@azure/storage-blob': '*' - '@browserbasehq/sdk': '*' - '@gomomento/sdk': '*' - '@gomomento/sdk-core': '*' - '@gomomento/sdk-web': ^1.51.1 '@langchain/anthropic': '*' '@langchain/aws': '*' + '@langchain/cerebras': '*' '@langchain/cohere': '*' + '@langchain/core': ^0.3.30 '@langchain/google-genai': '*' '@langchain/google-vertexai': '*' + '@langchain/google-vertexai-web': '*' '@langchain/groq': '*' '@langchain/mistralai': '*' '@langchain/ollama': '*' - '@mendable/firecrawl-js': '*' - '@notionhq/client': '*' - '@pinecone-database/pinecone': '*' - '@supabase/supabase-js': '*' - '@vercel/kv': '*' - '@xata.io/client': '*' - apify-client: '*' - assemblyai: '*' axios: '*' cheerio: '*' - chromadb: '*' - convex: '*' - couchbase: '*' - d3-dsv: '*' - epub2: '*' - faiss-node: '*' - fast-xml-parser: '*' handlebars: ^4.7.8 - html-to-text: '*' - ignore: '*' - ioredis: '*' - jsdom: '*' - mammoth: '*' - mongodb: '*' - node-llama-cpp: '*' - notion-to-md: '*' - officeparser: '*' - pdf-parse: '*' peggy: ^3.0.2 - playwright: '*' - puppeteer: '*' - pyodide: '>=0.24.1 <0.27.0' - redis: '*' - sonix-speech-recognition: '*' - srt-parser-2: '*' typeorm: '*' - weaviate-ts-client: '*' - web-auth-library: '*' - ws: '*' - youtube-transcript: '*' - youtubei.js: '*' peerDependenciesMeta: - '@aws-sdk/client-s3': - optional: true - '@aws-sdk/client-sagemaker-runtime': - optional: true - '@aws-sdk/client-sfn': - optional: true - '@aws-sdk/credential-provider-node': - optional: true - '@azure/storage-blob': - optional: true - '@browserbasehq/sdk': - optional: true - '@gomomento/sdk': - optional: true - '@gomomento/sdk-core': - optional: true - '@gomomento/sdk-web': - optional: true '@langchain/anthropic': optional: true '@langchain/aws': optional: true + '@langchain/cerebras': + optional: true '@langchain/cohere': optional: true '@langchain/google-genai': optional: true '@langchain/google-vertexai': optional: true + '@langchain/google-vertexai-web': + optional: true '@langchain/groq': optional: true '@langchain/mistralai': optional: true '@langchain/ollama': optional: true - '@mendable/firecrawl-js': - optional: true - '@notionhq/client': - optional: true - '@pinecone-database/pinecone': - optional: true - '@supabase/supabase-js': - optional: true - '@vercel/kv': - optional: true - '@xata.io/client': - optional: true - apify-client: - optional: true - assemblyai: - optional: true axios: optional: true cheerio: optional: true - chromadb: - optional: true - convex: - optional: true - couchbase: - optional: true - d3-dsv: - optional: true - epub2: - optional: true - faiss-node: - optional: true - fast-xml-parser: - optional: true handlebars: optional: true - html-to-text: - optional: true - ignore: - optional: true - ioredis: - optional: true - jsdom: - optional: true - mammoth: - optional: true - mongodb: - optional: true - node-llama-cpp: - optional: true - notion-to-md: - optional: true - officeparser: - optional: true - pdf-parse: - optional: true peggy: optional: true - playwright: - optional: true - puppeteer: - optional: true - pyodide: - optional: true - redis: - optional: true - sonix-speech-recognition: - optional: true - srt-parser-2: - optional: true typeorm: optional: true - weaviate-ts-client: - optional: true - web-auth-library: - optional: true - ws: - optional: true - youtube-transcript: - optional: true - youtubei.js: - optional: true langium@3.0.0: resolution: {integrity: sha512-+Ez9EoiByeoTu/2BXmEaZ06iPNXM6thWJp02KfBO/raSMyCJ4jw7AkWWa+zBCTm0+Tw1Fj9FOxdqSskyN5nAwg==} @@ -8714,16 +8710,8 @@ packages: langs@2.0.0: resolution: {integrity: sha512-v4pxOBEQVN1WBTfB1crhTtxzNLZU9HPWgadlwzWKISJtt6Ku/CnpBrwVy+jFv8StjxsPfwPFzO0CMwdZLJ0/BA==} - langsmith@0.1.65: - resolution: {integrity: sha512-+aBft8/jUQbVPv3MWVwFwW/rMxyyA8xSRIsjWl773Nc7LDniczuf2rxZEUslV02RB36EIBgCJPNX7jz2L5YsIQ==} - peerDependencies: - openai: '*' - peerDependenciesMeta: - openai: - optional: true - - langsmith@0.2.3: - resolution: {integrity: sha512-SPMYPVqR9kwXZVmJ2PXC61HeBnXIFHrjfjDxQ14H0+n5p4gqjLzgSHIQyxBlFeWQUQzArJxe65Ap+s+Xo1cZog==} + langsmith@0.2.15: + resolution: {integrity: sha512-homtJU41iitqIZVuuLW7iarCzD4f39KcfP9RTBWav9jifhrsDa1Ez89Ejr+4qi72iuBu8Y5xykchsGVgiEZ93w==} peerDependencies: openai: '*' peerDependenciesMeta: @@ -9366,8 +9354,8 @@ packages: resolution: {integrity: sha512-NT+57ZsfZBcMZ8xxX2krKKpHrroDlL7/NQkaStHI4un7W1HV8YWzm405k9D1etkt7tE2LHjU6Zd9y3Efwre/2g==} engines: {node: '>= 18'} - nodemailer@6.9.15: - resolution: {integrity: sha512-AHf04ySLC6CIfuRtRiEYtGEXgRfa6INgWGluDhnxTZhHSKvrBu7lc1VVchQ0d8nPc4cFaZoPq8vkyNoZr0TpGQ==} + nodemailer@6.9.16: + resolution: {integrity: sha512-psAuZdTIRN08HKVd/E8ObdV6NO7NTBY3KsC30F7M4H1OnmLCUNaS56FpYxyb26zWLSyYF9Ozch9KYHhHegsiOQ==} engines: {node: '>=6.0.0'} nopt@5.0.0: @@ -9500,17 +9488,8 @@ packages: resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} engines: {node: '>=18'} - openai@4.63.0: - resolution: {integrity: sha512-Y9V4KODbmrOpqiOmCDVnPfMxMqKLOx8Hwcdn/r8mePq4yv7FSXGnxCs8/jZKO7zCB/IVPWihpJXwJNAIOEiZ2g==} - hasBin: true - peerDependencies: - zod: ^3.23.8 - peerDependenciesMeta: - zod: - optional: true - - openai@4.67.3: - resolution: {integrity: sha512-HT2tZgjLgRqbLQNKmYtjdF/4TQuiBvg1oGvTDhwpSEQzxo6/oM1us8VQ53vBK2BiKvCxFuq6gKGG70qfwrNhKg==} + openai@4.78.1: + resolution: {integrity: sha512-drt0lHZBd2lMyORckOXFPQTmnGLWSLt8VK0W9BhOKWpMFBEoHMoz5gxMPmVq5icp+sOrsbMnsmZTVHUlKvD1Ow==} hasBin: true peerDependencies: zod: ^3.23.8 @@ -9857,15 +9836,6 @@ packages: pg-native: optional: true - pg@8.13.1: - resolution: {integrity: sha512-OUir1A0rPNZlX//c7ksiu7crsGZTKSOXJPgtNiHGIlC9H0lO+NC6ZDYksSgBYY/thSWhnSRBv8w1lieNNGATNQ==} - engines: {node: '>= 8.0.0'} - peerDependencies: - pg-native: '>=3.0.1' - peerDependenciesMeta: - pg-native: - optional: true - pgpass@1.0.5: resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} @@ -9931,6 +9901,16 @@ packages: resolution: {integrity: sha512-8xCNE/aT/EXKenuMDZ+xTVwkT8gsoHN2z/Q29l80u0ppGEXVvsKRzNMbtKhg8LS8k1tJLAHHylf6p4VFmP6XUQ==} engines: {node: '>= 0.4.0'} + playwright-core@1.49.1: + resolution: {integrity: sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==} + engines: {node: '>=18'} + hasBin: true + + playwright@1.49.1: + resolution: {integrity: sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==} + engines: {node: '>=18'} + hasBin: true + plotly.js@2.35.2: resolution: {integrity: sha512-s0knlWzRvLQXxzf3JQ6qbm8FpwKuMjkr+6r04f8/yCEByAQ+I0jkUzY/hSGRGb+u7iljTh9hgpEiiJP90vjyeQ==} @@ -10146,8 +10126,8 @@ packages: prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} - psl@1.10.0: - resolution: {integrity: sha512-KSKHEbjAnpUuAUserOq0FxGXCUrzC3WniuSJhvdbs102rL55266ZcHBqLWOsG30spQMlPdpy7icATiAQehg/iA==} + psl@1.15.0: + resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==} pump@3.0.2: resolution: {integrity: sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==} @@ -11064,6 +11044,10 @@ packages: resolution: {integrity: sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w==} engines: {node: '>=14.15.0'} + sharp@0.33.5: + resolution: {integrity: sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -11844,10 +11828,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici@5.28.4: - resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==} - engines: {node: '>=14.0'} - unified@10.1.2: resolution: {integrity: sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==} @@ -12394,11 +12374,6 @@ packages: yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} - yaml@2.4.2: - resolution: {integrity: sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA==} - engines: {node: '>= 14'} - hasBin: true - yaml@2.7.0: resolution: {integrity: sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==} engines: {node: '>= 14'} @@ -12461,6 +12436,11 @@ packages: peerDependencies: zod: ^3.23.3 + zod-to-json-schema@3.24.1: + resolution: {integrity: sha512-3h08nf3Vw3Wl3PK+q3ow/lIil81IT2Oa7YpQyUUDsEWbXveMesdfK1xBd2RhCkynwZndAxixji/7SYJJowr62w==} + peerDependencies: + zod: ^3.24.1 + zod@3.23.8: resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} @@ -12566,7 +12546,19 @@ snapshots: '@anthropic-ai/sdk@0.27.3(encoding@0.1.13)': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 + '@types/node-fetch': 2.6.11 + abort-controller: 3.0.0 + agentkeepalive: 4.5.0 + form-data-encoder: 1.7.2 + formdata-node: 4.4.1 + node-fetch: 2.6.7(encoding@0.1.13) + transitivePeerDependencies: + - encoding + + '@anthropic-ai/sdk@0.32.1(encoding@0.1.13)': + dependencies: + '@types/node': 18.19.64 '@types/node-fetch': 2.6.11 abort-controller: 3.0.0 agentkeepalive: 4.5.0 @@ -12615,10 +12607,10 @@ snapshots: '@babel/helpers': 7.25.6 '@babel/parser': 7.25.6 '@babel/template': 7.25.0 - '@babel/traverse': 7.25.6(supports-color@9.4.0) + '@babel/traverse': 7.25.6 '@babel/types': 7.25.6 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -12658,7 +12650,7 @@ snapshots: '@babel/traverse': 7.25.7 '@babel/types': 7.25.8 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -12678,7 +12670,7 @@ snapshots: '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -12746,14 +12738,21 @@ snapshots: '@babel/helper-optimise-call-expression': 7.24.7 '@babel/helper-replace-supers': 7.25.0(@babel/core@7.25.2) '@babel/helper-skip-transparent-expression-wrappers': 7.24.7 - '@babel/traverse': 7.25.6(supports-color@9.4.0) + '@babel/traverse': 7.25.6 semver: 6.3.1 transitivePeerDependencies: - supports-color '@babel/helper-member-expression-to-functions@7.24.8': dependencies: - '@babel/traverse': 7.25.6(supports-color@9.4.0) + '@babel/traverse': 7.25.6 + '@babel/types': 7.25.6 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-imports@7.24.7': + dependencies: + '@babel/traverse': 7.25.6 '@babel/types': 7.25.6 transitivePeerDependencies: - supports-color @@ -12793,10 +12792,10 @@ snapshots: '@babel/helper-module-transforms@7.25.2(@babel/core@7.25.2)': dependencies: '@babel/core': 7.25.2 - '@babel/helper-module-imports': 7.24.7(supports-color@9.4.0) - '@babel/helper-simple-access': 7.24.7(supports-color@9.4.0) + '@babel/helper-module-imports': 7.24.7 + '@babel/helper-simple-access': 7.24.7 '@babel/helper-validator-identifier': 7.24.7 - '@babel/traverse': 7.25.6(supports-color@9.4.0) + '@babel/traverse': 7.25.6 transitivePeerDependencies: - supports-color @@ -12831,7 +12830,14 @@ snapshots: '@babel/core': 7.25.2 '@babel/helper-member-expression-to-functions': 7.24.8 '@babel/helper-optimise-call-expression': 7.24.7 - '@babel/traverse': 7.25.6(supports-color@9.4.0) + '@babel/traverse': 7.25.6 + transitivePeerDependencies: + - supports-color + + '@babel/helper-simple-access@7.24.7': + dependencies: + '@babel/traverse': 7.25.6 + '@babel/types': 7.25.6 transitivePeerDependencies: - supports-color @@ -12851,7 +12857,7 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers@7.24.7': dependencies: - '@babel/traverse': 7.25.6(supports-color@9.4.0) + '@babel/traverse': 7.25.6 '@babel/types': 7.25.6 transitivePeerDependencies: - supports-color @@ -13086,7 +13092,7 @@ snapshots: '@babel/core': 7.25.2 '@babel/helper-module-transforms': 7.25.2(@babel/core@7.25.2) '@babel/helper-plugin-utils': 7.24.8 - '@babel/helper-simple-access': 7.24.7(supports-color@9.4.0) + '@babel/helper-simple-access': 7.24.7 transitivePeerDependencies: - supports-color @@ -13140,6 +13146,18 @@ snapshots: '@babel/parser': 7.25.9 '@babel/types': 7.25.9 + '@babel/traverse@7.25.6': + dependencies: + '@babel/code-frame': 7.24.7 + '@babel/generator': 7.25.6 + '@babel/parser': 7.25.6 + '@babel/template': 7.25.0 + '@babel/types': 7.25.6 + debug: 4.3.7(supports-color@8.1.1) + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + '@babel/traverse@7.25.6(supports-color@9.4.0)': dependencies: '@babel/code-frame': 7.24.7 @@ -13159,7 +13177,7 @@ snapshots: '@babel/parser': 7.25.8 '@babel/template': 7.25.9 '@babel/types': 7.25.8 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -13171,7 +13189,7 @@ snapshots: '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/types': 7.26.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -13204,6 +13222,37 @@ snapshots: '@braintree/sanitize-url@7.1.0': {} + '@browserbasehq/sdk@2.0.0(encoding@0.1.13)': + dependencies: + '@types/node': 18.19.64 + '@types/node-fetch': 2.6.11 + abort-controller: 3.0.0 + agentkeepalive: 4.5.0 + form-data-encoder: 1.7.2 + formdata-node: 4.4.1 + node-fetch: 2.6.7(encoding@0.1.13) + transitivePeerDependencies: + - encoding + + '@browserbasehq/stagehand@1.9.0(@playwright/test@1.49.1)(deepmerge@4.3.1)(dotenv@16.4.7)(encoding@0.1.13)(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))(zod@3.23.8)': + dependencies: + '@anthropic-ai/sdk': 0.27.3(encoding@0.1.13) + '@browserbasehq/sdk': 2.0.0(encoding@0.1.13) + '@playwright/test': 1.49.1 + deepmerge: 4.3.1 + dotenv: 16.4.7 + openai: 4.78.1(encoding@0.1.13)(zod@3.23.8) + sharp: 0.33.5 + ws: 8.18.0 + zod: 3.23.8 + zod-to-json-schema: 3.24.1(zod@3.23.8) + transitivePeerDependencies: + - bufferutil + - encoding + - utf-8-validate + + '@cfworker/json-schema@4.1.0': {} + '@chevrotain/cst-dts-gen@11.0.3': dependencies: '@chevrotain/gast': 11.0.3 @@ -13230,7 +13279,7 @@ snapshots: awaiting: 3.0.0 cheerio: 1.0.0-rc.12 csv-parse: 5.5.6 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -13244,7 +13293,7 @@ snapshots: '@cocalc/primus-responder@1.0.5': dependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) node-uuid: 1.4.8 transitivePeerDependencies: - supports-color @@ -13498,6 +13547,11 @@ snapshots: react: 18.3.1 tslib: 2.7.0 + '@emnapi/runtime@1.3.1': + dependencies: + tslib: 2.8.1 + optional: true + '@emotion/hash@0.8.0': {} '@emotion/unitless@0.7.5': {} @@ -13512,7 +13566,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.1 @@ -13525,9 +13579,6 @@ snapshots: '@eslint/js@8.57.1': {} - '@fastify/busboy@2.1.1': - optional: true - '@formatjs/cli@6.2.12': {} '@formatjs/ecma402-abstract@2.3.2': @@ -13660,7 +13711,7 @@ snapshots: '@google/generative-ai@0.14.1': {} - '@google/generative-ai@0.7.1': {} + '@google/generative-ai@0.21.0': {} '@grpc/grpc-js@1.10.8': dependencies: @@ -13677,7 +13728,7 @@ snapshots: '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -13686,11 +13737,11 @@ snapshots: '@humanwhocodes/object-schema@2.0.3': {} - '@ibm-cloud/watsonx-ai@1.1.3': + '@ibm-cloud/watsonx-ai@1.3.1': dependencies: '@types/node': 18.19.64 extend: 3.0.2 - ibm-cloud-sdk-core: 5.1.0 + ibm-cloud-sdk-core: 5.1.1 transitivePeerDependencies: - supports-color @@ -13701,7 +13752,7 @@ snapshots: '@antfu/install-pkg': 0.4.1 '@antfu/utils': 0.7.10 '@iconify/types': 2.0.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) kolorist: 1.8.0 local-pkg: 0.5.0 mlly: 1.7.2 @@ -13712,6 +13763,81 @@ snapshots: dependencies: react: 18.3.1 + '@img/sharp-darwin-arm64@0.33.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.0.4 + optional: true + + '@img/sharp-darwin-x64@0.33.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.0.4 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.0.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.0.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.0.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.0.5': + optional: true + + '@img/sharp-libvips-linux-s390x@1.0.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.0.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.0.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.0.4': + optional: true + + '@img/sharp-linux-arm64@0.33.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.0.4 + optional: true + + '@img/sharp-linux-arm@0.33.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.0.5 + optional: true + + '@img/sharp-linux-s390x@0.33.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.0.4 + optional: true + + '@img/sharp-linux-x64@0.33.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.0.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.33.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.0.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.33.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.0.4 + optional: true + + '@img/sharp-wasm32@0.33.5': + dependencies: + '@emnapi/runtime': 1.3.1 + optional: true + + '@img/sharp-win32-ia32@0.33.5': + optional: true + + '@img/sharp-win32-x64@0.33.5': + optional: true + '@isaacs/cliui@8.0.2': dependencies: string-width: 5.1.2 @@ -13736,7 +13862,7 @@ snapshots: '@jest/console@29.7.0': dependencies: '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 @@ -13781,7 +13907,7 @@ snapshots: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 jest-mock: 29.7.0 '@jest/expect-utils@29.7.0': @@ -13821,7 +13947,7 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 - '@types/node': 18.19.55 + '@types/node': 18.19.64 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -13830,7 +13956,7 @@ snapshots: istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.3 istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 4.0.1(supports-color@9.4.0) + istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.7 jest-message-util: 29.7.0 jest-util: 29.7.0 @@ -14082,137 +14208,109 @@ snapshots: transitivePeerDependencies: - crypto - '@langchain/anthropic@0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)': + '@langchain/anthropic@0.3.11(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)': dependencies: - '@anthropic-ai/sdk': 0.27.3(encoding@0.1.13) - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + '@anthropic-ai/sdk': 0.32.1(encoding@0.1.13) + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) fast-xml-parser: 4.5.0 zod: 3.23.8 zod-to-json-schema: 3.23.0(zod@3.23.8) transitivePeerDependencies: - encoding - '@langchain/community@0.3.11(@google-ai/generativelanguage@2.7.0(encoding@0.1.13))(@google-cloud/storage@7.13.0(encoding@0.1.13))(@ibm-cloud/watsonx-ai@1.1.3)(@langchain/anthropic@0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(@langchain/google-genai@0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8))(@langchain/mistralai@0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@qdrant/js-client-rest@1.12.0(typescript@5.6.3))(axios@1.7.7)(encoding@0.1.13)(fast-xml-parser@4.5.0)(google-auth-library@9.14.1(encoding@0.1.13))(googleapis@137.1.0(encoding@0.1.13))(handlebars@4.7.8)(ibm-cloud-sdk-core@5.1.0)(ignore@5.3.1)(jsonwebtoken@9.0.2)(lodash@4.17.21)(openai@4.63.0(encoding@0.1.13)(zod@3.23.8))(pg@8.13.1)(ws@8.18.0)': + '@langchain/community@0.3.24(x37dxigjnxhorsczml2unqokyu)': dependencies: - '@ibm-cloud/watsonx-ai': 1.1.3 - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) - '@langchain/openai': 0.3.7(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + '@browserbasehq/stagehand': 1.9.0(@playwright/test@1.49.1)(deepmerge@4.3.1)(dotenv@16.4.7)(encoding@0.1.13)(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))(zod@3.23.8) + '@ibm-cloud/watsonx-ai': 1.3.1 + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) + '@langchain/openai': 0.3.17(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) binary-extensions: 2.2.0 expr-eval: 2.0.2 flat: 5.0.2 - ibm-cloud-sdk-core: 5.1.0 + ibm-cloud-sdk-core: 5.1.1 js-yaml: 4.1.0 - langchain: 0.2.20(@langchain/anthropic@0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@langchain/google-genai@0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8))(@langchain/mistralai@0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(axios@1.7.7)(encoding@0.1.13)(fast-xml-parser@4.5.0)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.63.0(encoding@0.1.13)(zod@3.23.8))(ws@8.18.0) - langsmith: 0.2.3(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + langchain: 0.3.11(@langchain/anthropic@0.3.11(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(@langchain/google-genai@0.1.6(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8))(@langchain/mistralai@0.2.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))))(axios@1.7.7)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) + langsmith: 0.2.15(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) + openai: 4.78.1(encoding@0.1.13)(zod@3.23.8) uuid: 10.0.0 zod: 3.23.8 zod-to-json-schema: 3.23.0(zod@3.23.8) optionalDependencies: + '@browserbasehq/sdk': 2.0.0(encoding@0.1.13) '@google-ai/generativelanguage': 2.7.0(encoding@0.1.13) '@google-cloud/storage': 7.13.0(encoding@0.1.13) - '@qdrant/js-client-rest': 1.12.0(typescript@5.6.3) + fast-xml-parser: 4.5.0 google-auth-library: 9.14.1(encoding@0.1.13) googleapis: 137.1.0(encoding@0.1.13) ignore: 5.3.1 jsonwebtoken: 9.0.2 lodash: 4.17.21 - pg: 8.13.1 + pg: 8.13.0 + playwright: 1.49.1 ws: 8.18.0 transitivePeerDependencies: - - '@gomomento/sdk-web' - '@langchain/anthropic' - '@langchain/aws' + - '@langchain/cerebras' - '@langchain/cohere' - '@langchain/google-genai' - '@langchain/google-vertexai' + - '@langchain/google-vertexai-web' - '@langchain/groq' - '@langchain/mistralai' - '@langchain/ollama' - axios - - couchbase - encoding - - fast-xml-parser - handlebars - - node-llama-cpp - - openai - peggy - '@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8))': + '@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))': dependencies: + '@cfworker/json-schema': 4.1.0 ansi-styles: 5.2.0 camelcase: 6.3.0 decamelize: 1.2.0 js-tiktoken: 1.0.12 - langsmith: 0.2.3(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + langsmith: 0.2.15(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) mustache: 4.2.0 p-queue: 6.6.2 p-retry: 4.6.2 uuid: 10.0.0 zod: 3.23.8 - zod-to-json-schema: 3.23.0(zod@3.23.8) + zod-to-json-schema: 3.24.1(zod@3.23.8) transitivePeerDependencies: - openai - '@langchain/core@0.3.17(openai@4.67.3(encoding@0.1.13)(zod@3.23.8))': + '@langchain/google-genai@0.1.6(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8)': dependencies: - ansi-styles: 5.2.0 - camelcase: 6.3.0 - decamelize: 1.2.0 - js-tiktoken: 1.0.12 - langsmith: 0.2.3(openai@4.67.3(encoding@0.1.13)(zod@3.23.8)) - mustache: 4.2.0 - p-queue: 6.6.2 - p-retry: 4.6.2 - uuid: 10.0.0 - zod: 3.23.8 - zod-to-json-schema: 3.23.0(zod@3.23.8) - transitivePeerDependencies: - - openai - - '@langchain/google-genai@0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8)': - dependencies: - '@google/generative-ai': 0.7.1 - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) - zod-to-json-schema: 3.23.0(zod@3.23.8) + '@google/generative-ai': 0.21.0 + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) + zod-to-json-schema: 3.24.1(zod@3.23.8) transitivePeerDependencies: - zod - '@langchain/mistralai@0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)': + '@langchain/mistralai@0.2.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))': dependencies: - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) - '@mistralai/mistralai': 0.4.0(encoding@0.1.13) + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) + '@mistralai/mistralai': 1.3.6(zod@3.23.8) uuid: 10.0.0 zod: 3.23.8 - zod-to-json-schema: 3.23.0(zod@3.23.8) - transitivePeerDependencies: - - encoding - - '@langchain/openai@0.2.11(encoding@0.1.13)': - dependencies: - '@langchain/core': 0.3.17(openai@4.67.3(encoding@0.1.13)(zod@3.23.8)) - js-tiktoken: 1.0.12 - openai: 4.67.3(encoding@0.1.13)(zod@3.23.8) - zod: 3.23.8 - zod-to-json-schema: 3.23.0(zod@3.23.8) - transitivePeerDependencies: - - encoding + zod-to-json-schema: 3.24.1(zod@3.23.8) - '@langchain/openai@0.3.7(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)': + '@langchain/openai@0.3.17(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13)': dependencies: - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) js-tiktoken: 1.0.12 - openai: 4.67.3(encoding@0.1.13)(zod@3.23.8) + openai: 4.78.1(encoding@0.1.13)(zod@3.23.8) zod: 3.23.8 - zod-to-json-schema: 3.23.0(zod@3.23.8) + zod-to-json-schema: 3.24.1(zod@3.23.8) transitivePeerDependencies: - encoding - '@langchain/textsplitters@0.0.0(openai@4.63.0(encoding@0.1.13)(zod@3.23.8))': + '@langchain/textsplitters@0.1.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))': dependencies: - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) js-tiktoken: 1.0.12 - transitivePeerDependencies: - - openai '@leichtgewicht/ip-codec@2.0.5': {} @@ -14376,11 +14474,9 @@ snapshots: - '@types/react' - encoding - '@mistralai/mistralai@0.4.0(encoding@0.1.13)': + '@mistralai/mistralai@1.3.6(zod@3.23.8)': dependencies: - node-fetch: 2.6.7(encoding@0.1.13) - transitivePeerDependencies: - - encoding + zod: 3.23.8 '@module-federation/runtime-tools@0.5.1': dependencies: @@ -14463,7 +14559,7 @@ snapshots: '@types/xml-encryption': 1.2.4 '@types/xml2js': 0.4.14 '@xmldom/xmldom': 0.8.10 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) xml-crypto: 3.2.0 xml-encryption: 3.0.2 xml2js: 0.5.0 @@ -14667,6 +14763,10 @@ snapshots: '@pkgr/core@0.1.1': {} + '@playwright/test@1.49.1': + dependencies: + playwright: 1.49.1 + '@plotly/d3-sankey-circular@0.33.1': dependencies: d3-array: 1.2.4 @@ -14749,17 +14849,6 @@ snapshots: '@protobufjs/utf8@1.1.0': {} - '@qdrant/js-client-rest@1.12.0(typescript@5.6.3)': - dependencies: - '@qdrant/openapi-typescript-fetch': 1.2.6 - '@sevinf/maybe': 0.5.0 - typescript: 5.6.3 - undici: 5.28.4 - optional: true - - '@qdrant/openapi-typescript-fetch@1.2.6': - optional: true - '@rc-component/async-validator@5.0.4': dependencies: '@babel/runtime': 7.25.7 @@ -14949,7 +15038,7 @@ snapshots: optionalDependencies: react-refresh: 0.14.2 - '@sendgrid/client@8.1.3': + '@sendgrid/client@8.1.4': dependencies: '@sendgrid/helpers': 8.0.0 axios: 1.7.7 @@ -14960,16 +15049,13 @@ snapshots: dependencies: deepmerge: 4.3.1 - '@sendgrid/mail@8.1.3': + '@sendgrid/mail@8.1.4': dependencies: - '@sendgrid/client': 8.1.3 + '@sendgrid/client': 8.1.4 '@sendgrid/helpers': 8.0.0 transitivePeerDependencies: - debug - '@sevinf/maybe@0.5.0': - optional: true - '@sinclair/typebox@0.27.8': {} '@sinonjs/commons@1.8.6': @@ -15195,7 +15281,7 @@ snapshots: '@types/glob@7.2.0': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/graceful-fs@4.1.9': dependencies: @@ -15247,11 +15333,11 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/ldapjs@2.2.5': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/linkify-it@5.0.0': {} @@ -15298,7 +15384,7 @@ snapshots: '@types/node-fetch@2.6.11': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 form-data: 4.0.0 '@types/node-forge@1.3.11': @@ -15333,7 +15419,7 @@ snapshots: '@types/oauth@0.9.1': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/parse5@6.0.3': {} @@ -15401,13 +15487,13 @@ snapshots: '@types/request@2.48.12': dependencies: '@types/caseless': 0.12.5 - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/tough-cookie': 4.0.5 form-data: 2.5.1 '@types/responselike@1.0.3': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/retry@0.12.0': {} @@ -15433,7 +15519,7 @@ snapshots: '@types/serve-static@1.15.0': dependencies: '@types/mime': 3.0.1 - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/serve-static@1.15.7': dependencies: @@ -15480,16 +15566,16 @@ snapshots: '@types/xml-crypto@1.4.6': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 xpath: 0.0.27 '@types/xml-encryption@1.2.4': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/xml2js@0.4.14': dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/yargs-parser@21.0.0': {} @@ -15509,7 +15595,7 @@ snapshots: '@typescript-eslint/type-utils': 6.21.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/utils': 6.21.0(eslint@8.57.1)(typescript@5.6.3) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.1 @@ -15527,7 +15613,7 @@ snapshots: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 optionalDependencies: typescript: 5.6.3 @@ -15543,7 +15629,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.6.3) '@typescript-eslint/utils': 6.21.0(eslint@8.57.1)(typescript@5.6.3) - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 ts-api-utils: 1.3.0(typescript@5.6.3) optionalDependencies: @@ -15557,7 +15643,7 @@ snapshots: dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -15760,13 +15846,13 @@ snapshots: agent-base@6.0.2: dependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color agent-base@7.1.1: dependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -17654,7 +17740,7 @@ snapshots: commander: 6.2.1 glob: 7.2.3 - dotenv@16.4.5: {} + dotenv@16.4.7: {} draw-svg-path@1.0.0: dependencies: @@ -18010,7 +18096,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -18389,11 +18475,11 @@ snapshots: follow-redirects@1.15.6(debug@4.3.7): optionalDependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) follow-redirects@1.15.9(debug@4.3.7): optionalDependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) font-atlas@2.1.0: dependencies: @@ -18476,6 +18562,9 @@ snapshots: fs.realpath@1.0.0: {} + fsevents@2.3.2: + optional: true + fsevents@2.3.3: optional: true @@ -19149,7 +19238,7 @@ snapshots: dependencies: '@tootallnate/once': 2.0.0 agent-base: 6.0.2 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -19176,21 +19265,21 @@ snapshots: https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color https-proxy-agent@7.0.2: dependencies: agent-base: 7.1.1 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color https-proxy-agent@7.0.4: dependencies: agent-base: 7.1.1 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -19206,15 +19295,15 @@ snapshots: hyperdyperid@1.2.0: {} - ibm-cloud-sdk-core@5.1.0: + ibm-cloud-sdk-core@5.1.1: dependencies: '@types/debug': 4.1.12 '@types/node': 10.14.22 '@types/tough-cookie': 4.0.5 axios: 1.7.4(debug@4.3.7) camelcase: 6.3.0 - debug: 4.3.7(supports-color@9.4.0) - dotenv: 16.4.5 + debug: 4.3.7(supports-color@8.1.1) + dotenv: 16.4.7 extend: 3.0.2 file-type: 16.5.4 form-data: 4.0.0 @@ -19642,6 +19731,14 @@ snapshots: make-dir: 4.0.0 supports-color: 7.2.0 + istanbul-lib-source-maps@4.0.1: + dependencies: + debug: 4.3.7(supports-color@8.1.1) + istanbul-lib-coverage: 3.2.2 + source-map: 0.6.1 + transitivePeerDependencies: + - supports-color + istanbul-lib-source-maps@4.0.1(supports-color@9.4.0): dependencies: debug: 4.3.7(supports-color@9.4.0) @@ -19690,7 +19787,7 @@ snapshots: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.3 @@ -19839,7 +19936,7 @@ snapshots: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -19851,7 +19948,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 18.19.55 + '@types/node': 18.19.64 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -19946,7 +20043,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -19974,7 +20071,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 chalk: 4.1.2 cjs-module-lexer: 1.2.3 collect-v8-coverage: 1.0.2 @@ -20039,7 +20136,7 @@ snapshots: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 18.19.55 + '@types/node': 18.19.64 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -20054,7 +20151,7 @@ snapshots: jest-worker@29.7.0: dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -20296,31 +20393,27 @@ snapshots: lambda-cloud-node-api@1.0.1: {} - langchain@0.2.20(@langchain/anthropic@0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@langchain/google-genai@0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8))(@langchain/mistralai@0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(axios@1.7.7)(encoding@0.1.13)(fast-xml-parser@4.5.0)(handlebars@4.7.8)(ignore@5.3.1)(openai@4.63.0(encoding@0.1.13)(zod@3.23.8))(ws@8.18.0): + langchain@0.3.11(@langchain/anthropic@0.3.11(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13))(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(@langchain/google-genai@0.1.6(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8))(@langchain/mistralai@0.2.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))))(axios@1.7.7)(encoding@0.1.13)(handlebars@4.7.8)(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)): dependencies: - '@langchain/core': 0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) - '@langchain/openai': 0.2.11(encoding@0.1.13) - '@langchain/textsplitters': 0.0.0(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) - binary-extensions: 2.2.0 + '@langchain/core': 0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) + '@langchain/openai': 0.3.17(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + '@langchain/textsplitters': 0.1.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))) js-tiktoken: 1.0.12 js-yaml: 4.1.0 jsonpointer: 5.0.1 - langsmith: 0.1.65(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)) + langsmith: 0.2.15(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)) openapi-types: 12.1.3 p-retry: 4.6.2 uuid: 10.0.0 - yaml: 2.4.2 + yaml: 2.7.0 zod: 3.23.8 zod-to-json-schema: 3.23.0(zod@3.23.8) optionalDependencies: - '@langchain/anthropic': 0.3.3(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) - '@langchain/google-genai': 0.1.0(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8) - '@langchain/mistralai': 0.1.1(@langchain/core@0.3.17(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + '@langchain/anthropic': 0.3.11(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(encoding@0.1.13) + '@langchain/google-genai': 0.1.6(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)))(zod@3.23.8) + '@langchain/mistralai': 0.2.0(@langchain/core@0.3.30(openai@4.78.1(encoding@0.1.13)(zod@3.23.8))) axios: 1.7.7 - fast-xml-parser: 4.5.0 handlebars: 4.7.8 - ignore: 5.3.1 - ws: 8.18.0 transitivePeerDependencies: - encoding - openai @@ -20335,7 +20428,7 @@ snapshots: langs@2.0.0: {} - langsmith@0.1.65(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)): + langsmith@0.2.15(openai@4.78.1(encoding@0.1.13)(zod@3.23.8)): dependencies: '@types/uuid': 10.0.0 commander: 10.0.1 @@ -20344,29 +20437,7 @@ snapshots: semver: 7.6.3 uuid: 10.0.0 optionalDependencies: - openai: 4.63.0(encoding@0.1.13)(zod@3.23.8) - - langsmith@0.2.3(openai@4.63.0(encoding@0.1.13)(zod@3.23.8)): - dependencies: - '@types/uuid': 10.0.0 - commander: 10.0.1 - p-queue: 6.6.2 - p-retry: 4.6.2 - semver: 7.6.3 - uuid: 10.0.0 - optionalDependencies: - openai: 4.63.0(encoding@0.1.13)(zod@3.23.8) - - langsmith@0.2.3(openai@4.67.3(encoding@0.1.13)(zod@3.23.8)): - dependencies: - '@types/uuid': 10.0.0 - commander: 10.0.1 - p-queue: 6.6.2 - p-retry: 4.6.2 - semver: 7.6.3 - uuid: 10.0.0 - optionalDependencies: - openai: 4.67.3(encoding@0.1.13)(zod@3.23.8) + openai: 4.78.1(encoding@0.1.13)(zod@3.23.8) launch-editor@2.9.1: dependencies: @@ -20988,12 +21059,12 @@ snapshots: next-tick@1.1.0: {} - next-translate@2.6.2(next@14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0))(react@18.3.1): + next-translate@2.6.2(next@14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0))(react@18.3.1): dependencies: - next: 14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0) + next: 14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0) react: 18.3.1 - next@14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0): + next@14.2.22(@babel/core@7.25.2)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0): dependencies: '@next/env': 14.2.22 '@swc/helpers': 0.5.5 @@ -21015,12 +21086,13 @@ snapshots: '@next/swc-win32-ia32-msvc': 14.2.22 '@next/swc-win32-x64-msvc': 14.2.22 '@opentelemetry/api': 1.9.0 + '@playwright/test': 1.49.1 sass: 1.81.0 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros - next@14.2.22(@babel/core@7.25.8)(@opentelemetry/api@1.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0): + next@14.2.22(@babel/core@7.25.8)(@opentelemetry/api@1.9.0)(@playwright/test@1.49.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(sass@1.81.0): dependencies: '@next/env': 14.2.22 '@swc/helpers': 0.5.5 @@ -21042,6 +21114,7 @@ snapshots: '@next/swc-win32-ia32-msvc': 14.2.22 '@next/swc-win32-x64-msvc': 14.2.22 '@opentelemetry/api': 1.9.0 + '@playwright/test': 1.49.1 sass: 1.81.0 transitivePeerDependencies: - '@babel/core' @@ -21143,7 +21216,7 @@ snapshots: transitivePeerDependencies: - encoding - nodemailer@6.9.15: {} + nodemailer@6.9.16: {} nopt@5.0.0: dependencies: @@ -21217,7 +21290,7 @@ snapshots: istanbul-lib-instrument: 4.0.3 istanbul-lib-processinfo: 2.0.3 istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 4.0.1(supports-color@9.4.0) + istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.7 make-dir: 3.1.0 node-preload: 0.2.1 @@ -21342,23 +21415,9 @@ snapshots: is-inside-container: 1.0.0 is-wsl: 3.1.0 - openai@4.63.0(encoding@0.1.13)(zod@3.23.8): + openai@4.78.1(encoding@0.1.13)(zod@3.23.8): dependencies: - '@types/node': 18.19.50 - '@types/node-fetch': 2.6.11 - abort-controller: 3.0.0 - agentkeepalive: 4.5.0 - form-data-encoder: 1.7.2 - formdata-node: 4.4.1 - node-fetch: 2.6.7(encoding@0.1.13) - optionalDependencies: - zod: 3.23.8 - transitivePeerDependencies: - - encoding - - openai@4.67.3(encoding@0.1.13)(zod@3.23.8): - dependencies: - '@types/node': 18.19.55 + '@types/node': 18.19.64 '@types/node-fetch': 2.6.11 abort-controller: 3.0.0 agentkeepalive: 4.5.0 @@ -21703,11 +21762,6 @@ snapshots: dependencies: pg: 8.13.0 - pg-pool@3.7.0(pg@8.13.1): - dependencies: - pg: 8.13.1 - optional: true - pg-protocol@1.5.0: {} pg-protocol@1.7.0: {} @@ -21740,17 +21794,6 @@ snapshots: optionalDependencies: pg-cloudflare: 1.1.1 - pg@8.13.1: - dependencies: - pg-connection-string: 2.7.0 - pg-pool: 3.7.0(pg@8.13.1) - pg-protocol: 1.7.0 - pg-types: 2.2.0 - pgpass: 1.0.5 - optionalDependencies: - pg-cloudflare: 1.1.1 - optional: true - pgpass@1.0.5: dependencies: split2: 4.1.0 @@ -21805,6 +21848,14 @@ snapshots: pkginfo@0.4.1: {} + playwright-core@1.49.1: {} + + playwright@1.49.1: + dependencies: + playwright-core: 1.49.1 + optionalDependencies: + fsevents: 2.3.2 + plotly.js@2.35.2(@rspack/core@1.1.1(@swc/helpers@0.5.15))(mapbox-gl@3.8.0)(webpack@5.96.1): dependencies: '@plotly/d3': 3.8.2 @@ -22080,7 +22131,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.19.55 + '@types/node': 18.19.64 long: 5.2.3 protocol-buffers-schema@3.6.0: {} @@ -22095,7 +22146,7 @@ snapshots: prr@1.0.1: optional: true - psl@1.10.0: + psl@1.15.0: dependencies: punycode: 2.3.1 @@ -23244,6 +23295,32 @@ snapshots: tar-fs: 3.0.6 tunnel-agent: 0.6.0 + sharp@0.33.5: + dependencies: + color: 4.2.3 + detect-libc: 2.0.3 + semver: 7.6.3 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.33.5 + '@img/sharp-darwin-x64': 0.33.5 + '@img/sharp-libvips-darwin-arm64': 1.0.4 + '@img/sharp-libvips-darwin-x64': 1.0.4 + '@img/sharp-libvips-linux-arm': 1.0.5 + '@img/sharp-libvips-linux-arm64': 1.0.4 + '@img/sharp-libvips-linux-s390x': 1.0.4 + '@img/sharp-libvips-linux-x64': 1.0.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.0.4 + '@img/sharp-libvips-linuxmusl-x64': 1.0.4 + '@img/sharp-linux-arm': 0.33.5 + '@img/sharp-linux-arm64': 0.33.5 + '@img/sharp-linux-s390x': 0.33.5 + '@img/sharp-linux-x64': 0.33.5 + '@img/sharp-linuxmusl-arm64': 0.33.5 + '@img/sharp-linuxmusl-x64': 0.33.5 + '@img/sharp-wasm32': 0.33.5 + '@img/sharp-win32-ia32': 0.33.5 + '@img/sharp-win32-x64': 0.33.5 + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 @@ -23407,7 +23484,7 @@ snapshots: spdy-transport@3.0.0: dependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) detect-node: 2.1.0 hpack.js: 2.1.6 obuf: 1.1.2 @@ -23418,7 +23495,7 @@ snapshots: spdy@4.0.2: dependencies: - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) handle-thing: 2.0.1 http-deceiver: 1.2.7 select-hose: 2.0.0 @@ -23897,7 +23974,7 @@ snapshots: tough-cookie@4.1.4: dependencies: - psl: 1.10.0 + psl: 1.15.0 punycode: 2.3.1 universalify: 0.2.0 url-parse: 1.5.10 @@ -24094,11 +24171,6 @@ snapshots: undici-types@5.26.5: {} - undici@5.28.4: - dependencies: - '@fastify/busboy': 2.1.1 - optional: true - unified@10.1.2: dependencies: '@types/unist': 2.0.11 @@ -24552,7 +24624,7 @@ snapshots: dependencies: '@wwa/statvfs': 1.1.18 awaiting: 3.0.0 - debug: 4.3.7(supports-color@9.4.0) + debug: 4.3.7(supports-color@8.1.1) port-get: 1.0.4 ws: 8.18.0 transitivePeerDependencies: @@ -24743,8 +24815,6 @@ snapshots: yallist@4.0.0: {} - yaml@2.4.2: {} - yaml@2.7.0: {} yargs-parser@18.1.3: @@ -24826,6 +24896,10 @@ snapshots: dependencies: zod: 3.23.8 + zod-to-json-schema@3.24.1(zod@3.23.8): + dependencies: + zod: 3.23.8 + zod@3.23.8: {} zwitch@2.0.4: {} diff --git a/src/packages/server/package.json b/src/packages/server/package.json index 81c29eeb6b..a479089cf6 100644 --- a/src/packages/server/package.json +++ b/src/packages/server/package.json @@ -50,18 +50,18 @@ "@google-cloud/storage-transfer": "^3.3.0", "@google/generative-ai": "^0.14.0", "@isaacs/ttlcache": "^1.2.1", - "@langchain/anthropic": "^0.3.3", - "@langchain/community": "^0.3.11", - "@langchain/core": "^0.3.17", - "@langchain/google-genai": "^0.1.0", - "@langchain/mistralai": "^0.1.1", - "@langchain/openai": "^0.3.7", + "@langchain/anthropic": "^0.3.11", + "@langchain/community": "^0.3.24", + "@langchain/core": "^0.3.30", + "@langchain/google-genai": "^0.1.6", + "@langchain/mistralai": "^0.2.0", + "@langchain/openai": "^0.3.17", "@node-saml/passport-saml": "^4.0.4", "@passport-js/passport-twitter": "^1.0.8", "@passport-next/passport-google-oauth2": "^1.0.0", "@passport-next/passport-oauth2": "^2.1.4", - "@sendgrid/client": "^8.1.3", - "@sendgrid/mail": "^8.1.3", + "@sendgrid/client": "^8.1.4", + "@sendgrid/mail": "^8.1.4", "@types/async": "^2.0.43", "@types/cloudflare": "^2.7.11", "@types/dot-object": "^2.1.6", @@ -100,8 +100,8 @@ "ms": "2.1.2", "nanoid": "^3.3.8", "node-zendesk": "^5.0.13", - "nodemailer": "^6.9.14", - "openai": "^4.52.1", + "nodemailer": "^6.9.16", + "openai": "^4.78.1", "parse-domain": "^5.0.0", "passport": "^0.6.0", "passport-activedirectory": "^1.0.4", From e6f35c8e9576da1a0948cda6618b38a6099db96e Mon Sep 17 00:00:00 2001 From: Harald Schilly Date: Tue, 14 Jan 2025 18:16:22 +0100 Subject: [PATCH 2/3] llm: update langchain & co.; add o1 models, but they are incompatible and do not support streaming --- src/packages/server/llm/index.ts | 45 +++++++---- src/packages/server/llm/openai-lc.ts | 74 +++++++++++++------ src/packages/server/llm/test/00.test.ts | 27 +++++-- src/packages/util/db-schema/llm-utils.ts | 59 ++++++++++++--- .../util/db-schema/purchase-quotas.ts | 18 ++++- 5 files changed, 167 insertions(+), 56 deletions(-) diff --git a/src/packages/server/llm/index.ts b/src/packages/server/llm/index.ts index 7a9feeed19..56f585aeaf 100644 --- a/src/packages/server/llm/index.ts +++ b/src/packages/server/llm/index.ts @@ -26,6 +26,7 @@ import { LanguageModel, LanguageServiceCore, OpenAIMessages, + OpenAIModel, getLLMCost, isAnthropicModel, isCoreLanguageModel, @@ -50,6 +51,7 @@ import { evaluateCustomOpenAI } from "./custom-openai"; import { GoogleGenAIClient } from "./google-genai-client"; import { evaluateMistral } from "./mistral"; import { evaluateOllama } from "./ollama"; +import { evaluateOpenAILC } from "./openai-lc"; import { saveResponse } from "./save-response"; import { evaluateUserDefinedLLM } from "./user-defined"; @@ -176,12 +178,15 @@ async function evaluateImpl({ throw new Error("Wrong client. This should never happen. [GenAI]"); } return await evaluateGoogleGenAI({ ...params, client }); + } else if (isOpenAIModel(model)) { + return await evaluateOpenAILC(params); } else { - const client = await getClient(model); - if (!(client instanceof OpenAI)) { - throw new Error("Wrong client. This should never happen. [OpenAI]"); - } - return await evaluateOpenAI({ ...params, client }); + throw new Error(`Unable to handel model '${model}'.`); + // const client = await getClient(model); + // if (!(client instanceof OpenAI)) { + // throw new Error("Wrong client. This should never happen. [OpenAI]"); + // } + // return await evaluateOpenAI({ ...params, client }); } })(); @@ -327,15 +332,7 @@ export async function evaluateOpenAI({ throw new Error(`Model "${model}" not an OpenAI model.`); } - // the *-8k variants are artificial – the input is already limited/truncated to 8k - // convert *-preview and all *-8k to "gpt-4-turbo" - if (model.startsWith("gpt-4-turbo")) { - model = "gpt-4-turbo"; - } else if (model.startsWith("gpt-4o-mini")) { - model = "gpt-4o-mini"; - } else if (model.startsWith("gpt-4o")) { - model = "gpt-4o"; - } + model = normalizeOpenAIModel(model); const messages: OpenAIMessages = []; if (system) { @@ -356,3 +353,23 @@ export async function evaluateOpenAI({ stream, }); } + +export function normalizeOpenAIModel(model): OpenAIModel { + // the *-8k variants are artificial – the input is already limited/truncated to 8k + // convert *-preview and all *-8k to "gpt-4-turbo" + if (model.startsWith("gpt-4-turbo")) { + model = "gpt-4-turbo"; + } else if (model.startsWith("gpt-4o-mini")) { + model = "gpt-4o-mini"; + } else if (model.startsWith("gpt-4o")) { + model = "gpt-4o"; + } else if (model.startsWith("o1-mini")) { + model = "o1-mini"; + } else if (model.startsWith("o1")) { + model = "o1"; + } + if (!isOpenAIModel(model)) { + throw new Error(`Internal problem normalizing OpenAI model name: ${model}`); + } + return model; +} diff --git a/src/packages/server/llm/openai-lc.ts b/src/packages/server/llm/openai-lc.ts index defd0dcbe4..625e674dc3 100644 --- a/src/packages/server/llm/openai-lc.ts +++ b/src/packages/server/llm/openai-lc.ts @@ -1,4 +1,4 @@ -import { AIMessageChunk } from "@langchain/core/messages"; +import { AIMessageChunk, MessageContent } from "@langchain/core/messages"; import { ChatPromptTemplate, MessagesPlaceholder, @@ -11,6 +11,7 @@ import getLogger from "@cocalc/backend/logger"; import { getServerSettings } from "@cocalc/database/settings"; import { isOpenAIModel } from "@cocalc/util/db-schema/llm-utils"; import { ChatOutput, History } from "@cocalc/util/types/llm"; +import { normalizeOpenAIModel } from "."; import { transformHistoryToMessages } from "./chat-history"; import { numTokens } from "./chatgpt-numtokens"; @@ -42,20 +43,28 @@ async function getParams(model: string) { } export async function evaluateOpenAILC( - opts: Readonly, + opts: OpenAIOpts, mode: "cocalc" | "user" = "cocalc", ): Promise { + if (mode === "cocalc") { + opts.model = normalizeOpenAIModel(opts.model); + } if (mode === "cocalc" && !isOpenAIModel(opts.model)) { throw new Error(`model ${opts.model} not supported`); } const { system, history, input, maxTokens, stream, model } = opts; + // As of Jan 2025: reasoning models (o1) do not support streaming + // https://platform.openai.com/docs/guides/reasoning/ + const isO1 = model != "o1-mini" && model != "o1"; + const streaming = stream != null && isO1; + log.debug("evaluateOpenAILC", { input, history, system, model, - stream: stream != null, + stream: streaming, maxTokens, }); @@ -65,13 +74,11 @@ export async function evaluateOpenAILC( const openai = new ChatOpenAI({ ...params, maxTokens, - streaming: stream != null, - }).bind({ - stream_options: { include_usage: true }, - }); + streaming, + }).bind(isO1 ? {} : { stream_options: { include_usage: true } }); const prompt = ChatPromptTemplate.fromMessages([ - ["system", system ?? ""], + [isO1 ? "developer" : "system", system ?? ""], new MessagesPlaceholder("history"), ["human", "{input}"], ]); @@ -94,25 +101,34 @@ export async function evaluateOpenAILC( }, }); - const chunks = await chainWithHistory.stream({ - input, - }); - let finalResult: AIMessageChunk | undefined; let output = ""; - for await (const chunk of chunks) { - const { content } = chunk; - if (typeof content !== "string") continue; - output += content; - opts.stream?.(content); - - if (finalResult) { - finalResult = concat(finalResult, chunk); - } else { - finalResult = chunk; + + if (streaming) { + const chunks = await chainWithHistory.stream({ + input, + }); + + for await (const chunk of chunks) { + const { content } = chunk; + const contentStr = content2string(content); + output += contentStr; + opts.stream?.(contentStr); + + if (finalResult) { + finalResult = concat(finalResult, chunk); + } else { + finalResult = chunk; + } } + } else { + finalResult = await chainWithHistory.invoke({ input }); + const { content } = finalResult; + output = content2string(content); } + log.debug("finalResult", finalResult); + // and an empty call when done opts.stream?.(); @@ -142,3 +158,17 @@ export async function evaluateOpenAILC( }; } } + +function content2string(content: MessageContent): string { + if (typeof content === "string") { + return content; + } else { + const output0 = content[0]; + if (output0.type === "text") { + return output0.text; + } else { + log.debug("content2string unable to process", content); + return "Problem processing returned message content."; + } + } +} diff --git a/src/packages/server/llm/test/00.test.ts b/src/packages/server/llm/test/00.test.ts index 178c8541c2..3e5eb2f76d 100644 --- a/src/packages/server/llm/test/00.test.ts +++ b/src/packages/server/llm/test/00.test.ts @@ -12,12 +12,13 @@ import { isMistralModel, isOpenAIModel, } from "@cocalc/util/db-schema/llm-utils"; -import { evaluateGoogleGenAI, evaluateOpenAI } from ".."; +import { evaluateGoogleGenAI } from ".."; import { getClient } from "../client"; // import { evaluateMistral } from "../mistral"; import { evaluateAnthropic } from "../anthropic"; import { GoogleGenAIClient } from "../google-genai-client"; import { evaluateMistral } from "../mistral"; +import { evaluateOpenAILC } from "../openai-lc"; import { enableModels, setupAPIKeys, test_llm } from "./shared"; beforeAll(async () => { @@ -48,12 +49,17 @@ async function llmOpenAI(model: LanguageModelCore) { throw new Error(`model: ${model} is not an OpenAI model`); } - const client = await getClient(model); - if (client == null) { - throw new Error(`model: ${model} not found`); - } - const answer = await evaluateOpenAI({ - client: client as any, + // const client = await getClient(model); + // if (client == null) { + // throw new Error(`model: ${model} not found`); + // } + // const answer = await evaluateOpenAI({ + // client: client as any, + // model, + // ...QUERY, + // }); + + const answer = await evaluateOpenAILC({ model, ...QUERY, }); @@ -78,6 +84,13 @@ test_llm("openai")("OpenAI", () => { test("gpt 4o mini works", async () => { llmOpenAI("gpt-4o-mini-8k"); }); + + test("gpt o1", async () => { + llmOpenAI("o1-8k"); + }); + test("gpt o1 mini works", async () => { + llmOpenAI("o1-mini-8k"); + }); }); // ATTN: does not work everywhere around, geolocation matters diff --git a/src/packages/util/db-schema/llm-utils.ts b/src/packages/util/db-schema/llm-utils.ts index 0168459fff..fbfa5ec9b4 100644 --- a/src/packages/util/db-schema/llm-utils.ts +++ b/src/packages/util/db-schema/llm-utils.ts @@ -118,6 +118,10 @@ export const MODELS_OPENAI = [ "gpt-4-32k", "gpt-3.5-turbo-16k", "text-embedding-ada-002", // TODO: this is for embeddings, should be moved to a different place + "o1-mini-8k", + "o1-mini", + "o1-8k", + "o1", ] as const; export type OpenAIModel = (typeof MODELS_OPENAI)[number]; @@ -225,7 +229,9 @@ export const USER_SELECTABLE_LLMS_BY_VENDOR: { m === "gpt-4" || m === "gpt-4-turbo-preview-8k" || m === "gpt-4o-8k" || - m === "gpt-4o-mini-8k", + m === "gpt-4o-mini-8k" || + m === "o1-mini-8k" || + m === "o1-8k", ), google: GOOGLE_MODELS.filter( (m) => @@ -707,6 +713,10 @@ export const LLM_USERNAMES: LLM2String = { "gpt-4o-8k": "GPT-4o", "gpt-4o-mini": "GPT-4o Mini 128k", "gpt-4o-mini-8k": "GPT-4o Mini", + "o1-mini-8k": "OpenAI o1-mini", + "o1-8k": "OpenAI o1", + "o1-mini": "OpenAI o1-mini", + o1: "OpenAI o1", "text-embedding-ada-002": "Text Embedding Ada 002", // TODO: this is for embeddings, should be moved to a different place "text-bison-001": "PaLM 2", "chat-bison-001": "PaLM 2", @@ -742,8 +752,7 @@ export const LLM_DESCR: LLM2String = { "gpt-3.5-turbo-16k": `Same as ${LLM_USERNAMES["gpt-3.5-turbo"]} but with larger 16k token context`, "gpt-4-turbo-preview-8k": "More powerful, fresher knowledge, and lower price than GPT-4. (OpenAI, 8k token context)", - "gpt-4-turbo-preview": - "Like GPT-4 Turbo, but with up to 128k token context", + "gpt-4-turbo-preview": "Like GPT-4 Turbo, but with up to 128k token context", "gpt-4-turbo-8k": "Faster, fresher knowledge, and lower price than GPT-4. (OpenAI, 8k token context)", "gpt-4-turbo": "Like GPT-4 Turbo, but with up to 128k token context", @@ -754,6 +763,10 @@ export const LLM_DESCR: LLM2String = { "Most cost-efficient small model (OpenAI, 8k token context)", "gpt-4o-mini": "Most cost-efficient small model (OpenAI, 128k token context)", "text-embedding-ada-002": "Text embedding Ada 002 by OpenAI", // TODO: this is for embeddings, should be moved to a different place + "o1-8k": "Spends more time thinking (8k token context)", + "o1-mini-8k": "A cost-efficient reasoning model (8k token context)", + o1: "Spends more time thinking (8k token context)", + "o1-mini": "A cost-efficient reasoning model (8k token context)", "text-bison-001": "", "chat-bison-001": "", "gemini-pro": @@ -933,6 +946,30 @@ export const LLM_COST: { [name in LanguageModelCore]: Cost } = { max_tokens: 128000, // This is a lot: blows up the "max cost" calculation → requires raising the minimum balance and quota limit free: true, }, + o1: { + prompt_tokens: usd1Mtokens(15), + completion_tokens: usd1Mtokens(7.5), + max_tokens: 8192, // like gpt-4-turbo-8k + free: false, + }, + "o1-mini": { + prompt_tokens: usd1Mtokens(3), + completion_tokens: usd1Mtokens(1.5), + max_tokens: 8192, // like gpt-4-turbo-8k + free: false, + }, + "o1-8k": { + prompt_tokens: usd1Mtokens(15), + completion_tokens: usd1Mtokens(7.5), + max_tokens: 8192, // like gpt-4-turbo-8k + free: false, + }, + "o1-mini-8k": { + prompt_tokens: usd1Mtokens(3), + completion_tokens: usd1Mtokens(1.5), + max_tokens: 8192, // like gpt-4-turbo-8k + free: false, + }, // also OpenAI "text-embedding-ada-002": { prompt_tokens: 0.0001 / 1000, @@ -948,14 +985,14 @@ export const LLM_COST: { [name in LanguageModelCore]: Cost } = { free: true, }, "gemini-1.5-pro-8k": { - prompt_tokens: usd1Mtokens(3.5), // (we're below the 128k context) - completion_tokens: usd1Mtokens(10.5), + prompt_tokens: usd1Mtokens(1.25), // (we're below the 128k context) + completion_tokens: usd1Mtokens(5), max_tokens: 8_000, free: false, }, "gemini-1.5-pro": { - prompt_tokens: usd1Mtokens(7), - completion_tokens: usd1Mtokens(21), + prompt_tokens: usd1Mtokens(2.5), + completion_tokens: usd1Mtokens(10), max_tokens: 1048576, free: false, }, @@ -1028,14 +1065,14 @@ export const LLM_COST: { [name in LanguageModelCore]: Cost } = { free: false, }, "claude-3-haiku-8k": { - prompt_tokens: usd1Mtokens(0.25), - completion_tokens: usd1Mtokens(1.25), + prompt_tokens: usd1Mtokens(0.8), + completion_tokens: usd1Mtokens(4), max_tokens: 8_000, // limited to 8k tokens, offered for free free: true, }, "claude-3-haiku": { - prompt_tokens: usd1Mtokens(0.25), - completion_tokens: usd1Mtokens(1.25), + prompt_tokens: usd1Mtokens(0.8), + completion_tokens: usd1Mtokens(4), max_tokens: 200_000, free: false, }, diff --git a/src/packages/util/db-schema/purchase-quotas.ts b/src/packages/util/db-schema/purchase-quotas.ts index c6747c6d4c..9e892f6333 100644 --- a/src/packages/util/db-schema/purchase-quotas.ts +++ b/src/packages/util/db-schema/purchase-quotas.ts @@ -62,12 +62,22 @@ const GPT_OMNI_8K: Spec = { const GPT_OMNI_MINI_128k: Spec = { ...GPT_OMNI_128k, display: "OpenAI GPT-4o Mini 128k", -}; +} as const; const GPT_OMNI_MINI_8K: Spec = { ...GPT_OMNI_MINI_128k, display: "OpenAI GPT-4o Mini", -}; +} as const; + +const GPT_O1_8K: Spec = { + ...GPT_OMNI_128k, + display: "OpenAI o1", +} as const; + +const GPT_O1_MINI_8K: Spec = { + ...GPT_O1_8K, + display: "OpenAI o1 mini", +} as const; const GOOGLE_AI_COLOR = "#ff4d4f"; @@ -168,6 +178,10 @@ export const QUOTA_SPEC: QuotaSpec = { "openai-gpt-4o-8k": GPT_OMNI_8K, "openai-gpt-4o-mini": GPT_OMNI_MINI_128k, "openai-gpt-4o-mini-8k": GPT_OMNI_MINI_8K, + "openai-o1-mini-8k": GPT_O1_8K, + "openai-o1-8k": GPT_O1_MINI_8K, + "openai-o1-mini": GPT_O1_8K, + "openai-o1": GPT_O1_MINI_8K, "google-text-bison-001": { display: "Google Palm 2 (Text)", color: GOOGLE_AI_COLOR, From f0c341e0a252aed1e49122519d84e27d7da0632b Mon Sep 17 00:00:00 2001 From: Harald Schilly Date: Wed, 15 Jan 2025 15:46:34 +0100 Subject: [PATCH 3/3] llm: disable o1 models, since this does not work yet --- src/packages/server/llm/test/00.test.ts | 22 ++++++---------------- src/packages/util/db-schema/llm-utils.ts | 10 +++++++--- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/src/packages/server/llm/test/00.test.ts b/src/packages/server/llm/test/00.test.ts index 3e5eb2f76d..4f1fdb9476 100644 --- a/src/packages/server/llm/test/00.test.ts +++ b/src/packages/server/llm/test/00.test.ts @@ -49,16 +49,6 @@ async function llmOpenAI(model: LanguageModelCore) { throw new Error(`model: ${model} is not an OpenAI model`); } - // const client = await getClient(model); - // if (client == null) { - // throw new Error(`model: ${model} not found`); - // } - // const answer = await evaluateOpenAI({ - // client: client as any, - // model, - // ...QUERY, - // }); - const answer = await evaluateOpenAILC({ model, ...QUERY, @@ -85,12 +75,12 @@ test_llm("openai")("OpenAI", () => { llmOpenAI("gpt-4o-mini-8k"); }); - test("gpt o1", async () => { - llmOpenAI("o1-8k"); - }); - test("gpt o1 mini works", async () => { - llmOpenAI("o1-mini-8k"); - }); + // test("gpt o1", async () => { + // llmOpenAI("o1-8k"); + // }); + // test("gpt o1 mini works", async () => { + // llmOpenAI("o1-mini-8k"); + // }); }); // ATTN: does not work everywhere around, geolocation matters diff --git a/src/packages/util/db-schema/llm-utils.ts b/src/packages/util/db-schema/llm-utils.ts index fbfa5ec9b4..44744444e5 100644 --- a/src/packages/util/db-schema/llm-utils.ts +++ b/src/packages/util/db-schema/llm-utils.ts @@ -229,9 +229,13 @@ export const USER_SELECTABLE_LLMS_BY_VENDOR: { m === "gpt-4" || m === "gpt-4-turbo-preview-8k" || m === "gpt-4o-8k" || - m === "gpt-4o-mini-8k" || - m === "o1-mini-8k" || - m === "o1-8k", + m === "gpt-4o-mini-8k", + + // ATTN: there is code for o1 and o1-mini, but it does not work yet. + // The API changed, there is no support for streaming, and it took + // too much of my time trying to get it to work already. + // m === "o1-mini-8k" || + // m === "o1-8k", ), google: GOOGLE_MODELS.filter( (m) =>