Skip to content

Commit b297e58

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

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@langchain/google-genai": "^0.1.6",
4545
"@langchain/google-vertexai": "^0.1.6",
4646
"@langchain/textsplitters": "^0.1.0",
47-
"@librechat/agents": "^1.9.92",
47+
"@librechat/agents": "^1.9.94",
4848
"axios": "^1.7.7",
4949
"bcryptjs": "^2.4.3",
5050
"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
@@ -40,6 +40,7 @@ const { createRun } = require('./run');
4040
const { logger } = require('~/config');
4141

4242
/** @typedef {import('@librechat/agents').MessageContentComplex} MessageContentComplex */
43+
/** @typedef {import('@langchain/core/runnables').RunnableConfig} RunnableConfig */
4344

4445
const providerParsers = {
4546
[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
thread_id: this.conversationId,

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)