🌐 feat: OpenRouter Web Search (#9853)

* 🌐 feat: OpenRouter Web Search

- Added tests for handling web_search parameter with OpenRouter in various scenarios.
- Implemented logic to manage web_search in modelOptions and addParams/dropParams.
- Ensured correct configuration of llmConfig and modelKwargs for OpenRouter, including handling of plugins.
- Improved overall integration of OpenRouter with OpenAI API, ensuring expected behavior across different configurations.

* chore: bump @librechat/agents to v2.4.81
This commit is contained in:
Danny Avila 2025-09-26 09:35:41 -04:00 committed by GitHub
parent 823015160c
commit 3d7eaf0fcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 128 additions and 8 deletions

10
package-lock.json generated
View file

@ -65,7 +65,7 @@
"@langchain/google-vertexai": "^0.2.13",
"@langchain/openai": "^0.5.18",
"@langchain/textsplitters": "^0.1.0",
"@librechat/agents": "^2.4.80",
"@librechat/agents": "^2.4.81",
"@librechat/api": "*",
"@librechat/data-schemas": "*",
"@microsoft/microsoft-graph-client": "^3.0.7",
@ -21910,9 +21910,9 @@
}
},
"node_modules/@librechat/agents": {
"version": "2.4.80",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.4.80.tgz",
"integrity": "sha512-+GlWHMrgiwkptnUip7jJrz9oAQSz4+uJNoa+X6zR9W6x90NnknFwoQsXhQlnXoDGW75uGb+U7KI9mQz5H/YL6Q==",
"version": "2.4.81",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.4.81.tgz",
"integrity": "sha512-uPepwOepQS03NJg9jzLvYGonyewy33QDB7iENKHooO8+6eIOv2QC4gm1k/fYKgsIfBfng2caRmn532UTrkE3rQ==",
"license": "MIT",
"dependencies": {
"@langchain/anthropic": "^0.3.26",
@ -51641,7 +51641,7 @@
},
"peerDependencies": {
"@langchain/core": "^0.3.62",
"@librechat/agents": "^2.4.80",
"@librechat/agents": "^2.4.81",
"@librechat/data-schemas": "*",
"@modelcontextprotocol/sdk": "^1.17.1",
"axios": "^1.12.1",