Skip to content

Commit c350841

Browse files
committed
🐛 fix: Prevent Default Values in OpenAI/Custom Endpoint Agents (#5180)
* fix: prevent OpenAI/custom-endpoint agents from using default values * fix: order of assigning client options * chore: typing for runnable config
1 parent 2fc15ae commit c350841

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@langchain/google-genai": "^0.1.6",
4646
"@langchain/google-vertexai": "^0.1.6",
4747
"@langchain/textsplitters": "^0.1.0",
48-
"@librechat/agents": "^1.9.92",
48+
"@librechat/agents": "^1.9.94",
4949
"axios": "^1.7.7",
5050
"bcryptjs": "^2.4.3",
5151
"cheerio": "^1.0.0-rc.12",

api/server/controllers/agents/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const { createRun } = require('./run');
4141
const { logger } = require('~/config');
4242

4343
/** @typedef {import('@librechat/agents').MessageContentComplex} MessageContentComplex */
44+
/** @typedef {import('@langchain/core/runnables').RunnableConfig} RunnableConfig */
4445

4546
const providerParsers = {
4647
[EModelEndpoint.openAI]: openAISchema,
@@ -488,6 +489,7 @@ class AgentClient extends BaseClient {
488489
// });
489490
// }
490491

492+
/** @type {Partial<RunnableConfig> & { version: 'v1' | 'v2'; run_id?: string; streamMode: string }} */
491493
const config = {
492494
configurable: {
493495
req: this.options.req,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)