🚧 chore: merge latest dev build (#4288)

* fix: agent initialization, add `collectedUsage` handling

* style: improve side panel styling

* refactor(loadAgent): Optimize order agent project ID retrieval

* feat: code execution

* fix: typing issues

* feat: ExecuteCode content part

* refactor: use local state for default collapsed state of analysis content parts

* fix: code parsing in ExecuteCode component

* chore: bump agents package, export loadAuthValues

* refactor: Update handleTools.js to use EnvVar for code execution tool authentication

* WIP

* feat: download code outputs

* fix(useEventHandlers): type issues

* feat: backend handling for code outputs

* Refactor: Remove console.log statement in Part.tsx

* refactor: add attachments to TMessage/messageSchema

* WIP: prelim handling for code outputs

* feat: attachments rendering

* refactor: improve attachments rendering

* fix: attachments, nullish edge case, handle attachments from event stream, bump agents package

* fix filename download

* fix: tool assignment for 'run code' on agent creation

* fix: image handling by adding attachments

* refactor: prevent agent creation without provider/model

* refactor: remove unnecessary space in agent creation success message

* refactor: select first model if selecting provider from empty on form

* fix: Agent avatar bug

* fix: `defaultAgentFormValues` causing boolean typing issue and typeerror

* fix: capabilities counting as tools, causing duplication of them

* fix: formatted messages edge case where consecutive content text type parts with the latter having tool_call_ids would cause consecutive AI messages to be created. furthermore, content could not be an array for tool_use messages (anthropic limitation)

* chore: bump @librechat/agents dependency to version 1.6.9

* feat: bedrock agents

* feat: new Agents icon

* feat: agent titling

* feat: agent landing

* refactor: allow sharing agent globally only if user is admin or author

* feat: initial AgentPanelSkeleton

* feat: AgentPanelSkeleton

* feat: collaborative agents

* chore: add potential authorName as part of schema

* chore: Remove unnecessary console.log statement

* WIP: agent model parameters

* chore: ToolsDialog typing and tool related localization chnages

* refactor: update tool instance type (latest langchain class), and rename google tool to 'google' proper

* chore: add back tools

* feat: Agent knowledge files upload

* refactor: better verbiage for disabled knowledge

* chore: debug logs for file deletions

* chore: debug logs for file deletions

* feat: upload/delete agent knowledge/file-search files

* feat: file search UI for agents

* feat: first pass, file search tool

* chore: update default agent capabilities and info
This commit is contained in:
Danny Avila 2024-09-30 17:17:57 -04:00 committed by GitHub
parent f33e75e2ee
commit ad74350036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
123 changed files with 3611 additions and 1541 deletions

305
package-lock.json generated
View file

@ -52,7 +52,7 @@
"@langchain/core": "^0.2.18",
"@langchain/google-genai": "^0.0.11",
"@langchain/google-vertexai": "^0.0.17",
"@librechat/agents": "^1.5.2",
"@librechat/agents": "^1.6.9",
"axios": "^1.7.7",
"bcryptjs": "^2.4.3",
"cheerio": "^1.0.0-rc.12",
@ -1030,16 +1030,15 @@
}
},
"api/node_modules/@langchain/core": {
"version": "0.2.18",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.18.tgz",
"integrity": "sha512-ru542BwNcsnDfjTeDbIkFIchwa54ctHZR+kVrC8U9NPS9/36iM8p8ruprOV7Zccj/oxtLE5UpEhV+9MZhVcFlA==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "~0.1.39",
"ml-distance": "^4.0.0",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -1051,40 +1050,6 @@
"node": ">=18"
}
},
"api/node_modules/@langchain/core/node_modules/@types/uuid": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="
},
"api/node_modules/@langchain/core/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
"p-queue": "^6.6.2",
"p-retry": "4",
"semver": "^7.6.3",
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
}
},
"api/node_modules/@langchain/core/node_modules/uuid": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
@ -1105,6 +1070,11 @@
"undici-types": "~5.26.4"
}
},
"api/node_modules/@types/uuid": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="
},
"api/node_modules/ansi-styles": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
@ -1150,15 +1120,36 @@
}
},
"api/node_modules/langsmith": {
"version": "0.1.14",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.14.tgz",
"integrity": "sha512-iEzQLLB7/0nRpAwNBAR7B7N64fyByg5UsNjSvLaCCkQ9AS68PSafjB8xQkyI8QXXrGjU1dEqDRoa8m4SUuRdUw==",
"version": "0.1.59",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.59.tgz",
"integrity": "sha512-dW+z6s538zBswFFP2w/xzvVef7y2+yNt6GkmRCeLtwfpbMaM4di7JboK3vmnZ+0/LjNb2ukiMmgsTNKu/Y43cg==",
"dependencies": {
"@types/uuid": "^9.0.1",
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
"p-queue": "^6.6.2",
"p-retry": "4",
"uuid": "^9.0.0"
"semver": "^7.6.3",
"uuid": "^10.0.0"
},
"peerDependencies": {
"openai": "*"
},
"peerDependenciesMeta": {
"openai": {
"optional": true
}
}
},
"api/node_modules/langsmith/node_modules/uuid": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"bin": {
"uuid": "dist/bin/uuid"
}
},
"api/node_modules/node-fetch": {
@ -1181,9 +1172,9 @@
}
},
"api/node_modules/openai": {
"version": "4.47.1",
"resolved": "https://registry.npmjs.org/openai/-/openai-4.47.1.tgz",
"integrity": "sha512-WWSxhC/69ZhYWxH/OBsLEirIjUcfpQ5+ihkXKp06hmeYXgBBIUCa9IptMzYx6NdkiOCsSGYCnTIsxaic3AjRCQ==",
"version": "4.63.0",
"resolved": "https://registry.npmjs.org/openai/-/openai-4.63.0.tgz",
"integrity": "sha512-Y9V4KODbmrOpqiOmCDVnPfMxMqKLOx8Hwcdn/r8mePq4yv7FSXGnxCs8/jZKO7zCB/IVPWihpJXwJNAIOEiZ2g==",
"dependencies": {
"@types/node": "^18.11.18",
"@types/node-fetch": "^2.6.4",
@ -1191,11 +1182,18 @@
"agentkeepalive": "^4.2.1",
"form-data-encoder": "1.7.2",
"formdata-node": "^4.3.2",
"node-fetch": "^2.6.7",
"web-streams-polyfill": "^3.2.1"
"node-fetch": "^2.6.7"
},
"bin": {
"openai": "bin/cli"
},
"peerDependencies": {
"zod": "^3.23.8"
},
"peerDependenciesMeta": {
"zod": {
"optional": true
}
}
},
"api/node_modules/tr46": {
@ -8790,9 +8788,9 @@
}
},
"node_modules/@langchain/anthropic": {
"version": "0.2.15",
"resolved": "https://registry.npmjs.org/@langchain/anthropic/-/anthropic-0.2.15.tgz",
"integrity": "sha512-b9zVryoqqzyKelCJoc/8R8EziGfUyaX9w13BNXGoZ+RwMU88XaM05xeqxcJFOezVTi0aH4yoEZ6Kw/CtsukI0A==",
"version": "0.2.18",
"resolved": "https://registry.npmjs.org/@langchain/anthropic/-/anthropic-0.2.18.tgz",
"integrity": "sha512-4ZDTxMwGKTPRAi2Supu/faBSmwPIm/ga5QlazyO78Mf/8QbDR2DcvM5394FAy+X/nRAfnMbyXteO5IRJm653gw==",
"dependencies": {
"@anthropic-ai/sdk": "^0.25.2",
"@langchain/core": ">=0.2.21 <0.3.0",
@ -8819,15 +8817,15 @@
}
},
"node_modules/@langchain/anthropic/node_modules/@langchain/core": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.31.tgz",
"integrity": "sha512-qGfeaACST7dvovgHItzuag9fEBGK7IjCE9vRuTu/y8/WYGJi28WPD/AwWxnu7YdW1vZSuIXO6ZA76t2G9B/oKg==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "^0.1.43",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -8840,9 +8838,9 @@
}
},
"node_modules/@langchain/anthropic/node_modules/@types/node": {
"version": "18.19.48",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.48.tgz",
"integrity": "sha512-7WevbG4ekUcRQSZzOwxWgi5dZmTak7FaxXDoW7xVxPBmKx1rTzfmRLkeCgJzcbBnOV2dkhAPc8cCeT6agocpjg==",
"version": "18.19.53",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.53.tgz",
"integrity": "sha512-GLxgUgHhDKO1Edw9Q0lvMbiO/IQXJwJlMaqxSGBXMpPy8uhkCs2iiPFaB2Q/gmobnFkckD3rqTBMVjXdwq+nKg==",
"dependencies": {
"undici-types": "~5.26.4"
}
@ -8864,9 +8862,9 @@
}
},
"node_modules/@langchain/anthropic/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"version": "0.1.61",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.61.tgz",
"integrity": "sha512-XQE4KPScwPmdaT0mWDzhNxj9gvqXUR+C7urLA0QFi27XeoQdm17eYpudenn4wxC0gIyUJutQCyuYJpfwlT5JnQ==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
@ -8876,17 +8874,9 @@
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
@ -8922,15 +8912,15 @@
}
},
"node_modules/@langchain/aws/node_modules/@langchain/core": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.31.tgz",
"integrity": "sha512-qGfeaACST7dvovgHItzuag9fEBGK7IjCE9vRuTu/y8/WYGJi28WPD/AwWxnu7YdW1vZSuIXO6ZA76t2G9B/oKg==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "^0.1.43",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -8959,9 +8949,9 @@
}
},
"node_modules/@langchain/aws/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"version": "0.1.61",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.61.tgz",
"integrity": "sha512-XQE4KPScwPmdaT0mWDzhNxj9gvqXUR+C7urLA0QFi27XeoQdm17eYpudenn4wxC0gIyUJutQCyuYJpfwlT5JnQ==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
@ -8971,17 +8961,9 @@
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
@ -9607,15 +9589,15 @@
}
},
"node_modules/@langchain/langgraph/node_modules/@langchain/core": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.31.tgz",
"integrity": "sha512-qGfeaACST7dvovgHItzuag9fEBGK7IjCE9vRuTu/y8/WYGJi28WPD/AwWxnu7YdW1vZSuIXO6ZA76t2G9B/oKg==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "^0.1.43",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -9644,9 +9626,9 @@
}
},
"node_modules/@langchain/langgraph/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"version": "0.1.61",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.61.tgz",
"integrity": "sha512-XQE4KPScwPmdaT0mWDzhNxj9gvqXUR+C7urLA0QFi27XeoQdm17eYpudenn4wxC0gIyUJutQCyuYJpfwlT5JnQ==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
@ -9656,17 +9638,9 @@
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
@ -9700,15 +9674,15 @@
}
},
"node_modules/@langchain/mistralai/node_modules/@langchain/core": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.31.tgz",
"integrity": "sha512-qGfeaACST7dvovgHItzuag9fEBGK7IjCE9vRuTu/y8/WYGJi28WPD/AwWxnu7YdW1vZSuIXO6ZA76t2G9B/oKg==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "^0.1.43",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -9737,9 +9711,9 @@
}
},
"node_modules/@langchain/mistralai/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"version": "0.1.61",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.61.tgz",
"integrity": "sha512-XQE4KPScwPmdaT0mWDzhNxj9gvqXUR+C7urLA0QFi27XeoQdm17eYpudenn4wxC0gIyUJutQCyuYJpfwlT5JnQ==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
@ -9749,17 +9723,9 @@
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
@ -9831,15 +9797,15 @@
}
},
"node_modules/@langchain/textsplitters/node_modules/@langchain/core": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.31.tgz",
"integrity": "sha512-qGfeaACST7dvovgHItzuag9fEBGK7IjCE9vRuTu/y8/WYGJi28WPD/AwWxnu7YdW1vZSuIXO6ZA76t2G9B/oKg==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "^0.1.43",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -9868,9 +9834,9 @@
}
},
"node_modules/@langchain/textsplitters/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"version": "0.1.61",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.61.tgz",
"integrity": "sha512-XQE4KPScwPmdaT0mWDzhNxj9gvqXUR+C7urLA0QFi27XeoQdm17eYpudenn4wxC0gIyUJutQCyuYJpfwlT5JnQ==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
@ -9880,17 +9846,9 @@
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
@ -9960,9 +9918,9 @@
}
},
"node_modules/@librechat/agents": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-1.5.2.tgz",
"integrity": "sha512-mPBmzzidqTxsQ2nCNgPEqZnNzHKY6QvAr6mF+MTjsME/qQbqN+PjGUSQTCcvEKa3ClQK8yrZl8nNELFq9Ghv/w==",
"version": "1.6.9",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-1.6.9.tgz",
"integrity": "sha512-a2ef4cpC8BpegiIOJkC5rVqtp2lAfTEm/wWUfQ/wtEFPPyUBlnzoQRcO79V3Veju3DzkmMBJP5oUrzGZ+lKemg==",
"dependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
"@aws-sdk/credential-provider-node": "^3.613.0",
@ -9987,9 +9945,9 @@
}
},
"node_modules/@librechat/agents/node_modules/@langchain/community": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.2.31.tgz",
"integrity": "sha512-UayfsFyxHBLGnc9nODLupC46lvTMssYkfmFalMKqWAWQLWPEKOcDriy8Dg8+0MBME/y7SzqlCniEeEvml16hog==",
"version": "0.2.33",
"resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.2.33.tgz",
"integrity": "sha512-YsytROnBYoPqtUcV2In+afyLACzxwFrYRn7EBKYL7XWl3XNwrT85U1+nLM5b+MOjXvg9YfJSjrs1Tlbfy4st8g==",
"dependencies": {
"@langchain/core": ">=0.2.21 <0.3.0",
"@langchain/openai": ">=0.2.0 <0.3.0",
@ -10007,6 +9965,7 @@
"node": ">=18"
},
"peerDependencies": {
"@arcjet/redact": "^v1.0.0-alpha.23",
"@aws-crypto/sha256-js": "^5.0.0",
"@aws-sdk/client-bedrock-agent-runtime": "^3.583.0",
"@aws-sdk/client-bedrock-runtime": "^3.422.0",
@ -10036,7 +9995,7 @@
"@langchain/langgraph": "*",
"@layerup/layerup-security": "^1.5.12",
"@mendable/firecrawl-js": "^0.0.13",
"@mlc-ai/web-llm": "0.2.46",
"@mlc-ai/web-llm": "*",
"@mozilla/readability": "*",
"@neondatabase/serverless": "*",
"@notionhq/client": "^2.2.10",
@ -10129,6 +10088,9 @@
"youtubei.js": "^9.1.0"
},
"peerDependenciesMeta": {
"@arcjet/redact": {
"optional": true
},
"@aws-crypto/sha256-js": {
"optional": true
},
@ -10492,15 +10454,15 @@
}
},
"node_modules/@librechat/agents/node_modules/@langchain/core": {
"version": "0.2.31",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.31.tgz",
"integrity": "sha512-qGfeaACST7dvovgHItzuag9fEBGK7IjCE9vRuTu/y8/WYGJi28WPD/AwWxnu7YdW1vZSuIXO6ZA76t2G9B/oKg==",
"version": "0.2.34",
"resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.34.tgz",
"integrity": "sha512-Hkveq1UcOjUj1DVn5erbqElyRj1t04NORSuSIZAJCtPO7EDkIqomjAarJ5+I5NUpQeIONgbOdnY9TkJ6cKUSVA==",
"dependencies": {
"ansi-styles": "^5.0.0",
"camelcase": "6",
"decamelize": "1.2.0",
"js-tiktoken": "^1.0.12",
"langsmith": "^0.1.43",
"langsmith": "^0.1.56-rc.1",
"mustache": "^4.2.0",
"p-queue": "^6.6.2",
"p-retry": "4",
@ -10525,13 +10487,13 @@
}
},
"node_modules/@librechat/agents/node_modules/@langchain/openai": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.2.8.tgz",
"integrity": "sha512-p5fxEAKuR8UV9jWIxkZ6AY/vAPSYxJI0Pf/UM4T3FKk/dn99G/mAEDLhfI4pBf7B8o8TudSVyBW2hRjZqlQu7g==",
"version": "0.2.11",
"resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.2.11.tgz",
"integrity": "sha512-Pu8+WfJojCgSf0bAsXb4AjqvcDyAWyoEB1AoCRNACgEnBWZuitz3hLwCo9I+6hAbeg3QJ37g82yKcmvKAg1feg==",
"dependencies": {
"@langchain/core": ">=0.2.26 <0.3.0",
"js-tiktoken": "^1.0.12",
"openai": "^4.55.0",
"openai": "^4.57.3",
"zod": "^3.22.4",
"zod-to-json-schema": "^3.22.3"
},
@ -10540,9 +10502,9 @@
}
},
"node_modules/@librechat/agents/node_modules/@types/node": {
"version": "18.19.48",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.48.tgz",
"integrity": "sha512-7WevbG4ekUcRQSZzOwxWgi5dZmTak7FaxXDoW7xVxPBmKx1rTzfmRLkeCgJzcbBnOV2dkhAPc8cCeT6agocpjg==",
"version": "18.19.53",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.53.tgz",
"integrity": "sha512-GLxgUgHhDKO1Edw9Q0lvMbiO/IQXJwJlMaqxSGBXMpPy8uhkCs2iiPFaB2Q/gmobnFkckD3rqTBMVjXdwq+nKg==",
"dependencies": {
"undici-types": "~5.26.4"
}
@ -10576,9 +10538,9 @@
}
},
"node_modules/@librechat/agents/node_modules/langchain": {
"version": "0.2.17",
"resolved": "https://registry.npmjs.org/langchain/-/langchain-0.2.17.tgz",
"integrity": "sha512-wFn7wo+XGzqYrv3KJLmMZ1M6BHx12C3YUSASOa03rcDsBzRL5onxhKAC/g4xAIqlAHrJYgU6Jb/T/S6uJ6UdkQ==",
"version": "0.2.20",
"resolved": "https://registry.npmjs.org/langchain/-/langchain-0.2.20.tgz",
"integrity": "sha512-tbels6Rr524iMM3VOQ4aTGnEOOjAA1BQuBR8u/8gJ2yT48lMtIQRAN32Y4KVjKK+hEWxHHlmLBrtgLpTphFjNA==",
"dependencies": {
"@langchain/core": ">=0.2.21 <0.3.0",
"@langchain/openai": ">=0.1.0 <0.3.0",
@ -10587,7 +10549,7 @@
"js-tiktoken": "^1.0.12",
"js-yaml": "^4.1.0",
"jsonpointer": "^5.0.1",
"langsmith": "~0.1.40",
"langsmith": "^0.1.56-rc.1",
"openapi-types": "^12.1.3",
"p-retry": "4",
"uuid": "^10.0.0",
@ -10611,7 +10573,6 @@
"@langchain/anthropic": "*",
"@langchain/aws": "*",
"@langchain/cohere": "*",
"@langchain/community": "*",
"@langchain/google-genai": "*",
"@langchain/google-vertexai": "*",
"@langchain/groq": "*",
@ -10647,7 +10608,7 @@
"peggy": "^3.0.2",
"playwright": "*",
"puppeteer": "*",
"pyodide": "^0.24.1",
"pyodide": ">=0.24.1 <0.27.0",
"redis": "*",
"sonix-speech-recognition": "*",
"srt-parser-2": "*",
@ -10695,9 +10656,6 @@
"@langchain/cohere": {
"optional": true
},
"@langchain/community": {
"optional": true
},
"@langchain/google-genai": {
"optional": true
},
@ -10839,9 +10797,9 @@
}
},
"node_modules/@librechat/agents/node_modules/langsmith": {
"version": "0.1.49",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.49.tgz",
"integrity": "sha512-PI9qzBalZYpN2gu1kf1IX/+unRRXTiZRhtTKYfWcPyQVPZ5exZVJfZy515+FUp1iXdgacr2tS2ZtNGUB2Vdejg==",
"version": "0.1.61",
"resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.61.tgz",
"integrity": "sha512-XQE4KPScwPmdaT0mWDzhNxj9gvqXUR+C7urLA0QFi27XeoQdm17eYpudenn4wxC0gIyUJutQCyuYJpfwlT5JnQ==",
"dependencies": {
"@types/uuid": "^10.0.0",
"commander": "^10.0.1",
@ -10851,17 +10809,9 @@
"uuid": "^10.0.0"
},
"peerDependencies": {
"@langchain/core": "*",
"langchain": "*",
"openai": "*"
},
"peerDependenciesMeta": {
"@langchain/core": {
"optional": true
},
"langchain": {
"optional": true
},
"openai": {
"optional": true
}
@ -10878,19 +10828,17 @@
}
},
"node_modules/@librechat/agents/node_modules/openai": {
"version": "4.57.0",
"resolved": "https://registry.npmjs.org/openai/-/openai-4.57.0.tgz",
"integrity": "sha512-JnwBSIYqiZ3jYjB5f2in8hQ0PRA092c6m+/6dYB0MzK0BEbn+0dioxZsPLBm5idJbg9xzLNOiGVm2OSuhZ+BdQ==",
"version": "4.65.0",
"resolved": "https://registry.npmjs.org/openai/-/openai-4.65.0.tgz",
"integrity": "sha512-LfA4KUBpH/8rA3vjCQ74LZtdK/8wx9W6Qxq8MHqEdImPsN1XPQ2ompIuJWkKS6kXt5Cs5i8Eb65IIo4M7U+yeQ==",
"dependencies": {
"@types/node": "^18.11.18",
"@types/node-fetch": "^2.6.4",
"@types/qs": "^6.9.7",
"abort-controller": "^3.0.0",
"agentkeepalive": "^4.2.1",
"form-data-encoder": "1.7.2",
"formdata-node": "^4.3.2",
"node-fetch": "^2.6.7",
"qs": "^6.10.3"
"node-fetch": "^2.6.7"
},
"bin": {
"openai": "bin/cli"
@ -15258,11 +15206,6 @@
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz",
"integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng=="
},
"node_modules/@types/qs": {
"version": "6.9.15",
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz",
"integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg=="
},
"node_modules/@types/react": {
"version": "18.2.53",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.53.tgz",
@ -36597,7 +36540,7 @@
},
"packages/data-provider": {
"name": "librechat-data-provider",
"version": "0.7.426",
"version": "0.7.427",
"license": "ISC",
"dependencies": {
"@types/js-yaml": "^4.0.9",