🔧 fix: Initialize reasoningKey to 'reasoning_content' (#8286)

* chore: bump @librechat/agents to v2.4.56

* chore: bump @librechat/api version to 1.2.6

* fix: initialize reasoningKey to 'reasoning_content' in createRun function
This commit is contained in:
Danny Avila 2025-07-07 01:05:40 -04:00 committed by GitHub
parent 35f548a94d
commit aecf8f19a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View file

@ -48,7 +48,7 @@
"@langchain/google-genai": "^0.2.13",
"@langchain/google-vertexai": "^0.2.13",
"@langchain/textsplitters": "^0.1.0",
"@librechat/agents": "^2.4.55",
"@librechat/agents": "^2.4.56",
"@librechat/api": "*",
"@librechat/data-schemas": "*",
"@node-saml/passport-saml": "^5.0.0",

12
package-lock.json generated
View file

@ -64,7 +64,7 @@
"@langchain/google-genai": "^0.2.13",
"@langchain/google-vertexai": "^0.2.13",
"@langchain/textsplitters": "^0.1.0",
"@librechat/agents": "^2.4.55",
"@librechat/agents": "^2.4.56",
"@librechat/api": "*",
"@librechat/data-schemas": "*",
"@node-saml/passport-saml": "^5.0.0",
@ -19343,9 +19343,9 @@
}
},
"node_modules/@librechat/agents": {
"version": "2.4.55",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.4.55.tgz",
"integrity": "sha512-PaEwR/jQP1dkzrEL6YAMUtRIizPdSymU3/VDHdnxrKB3rS1hirb1QZx8kZ3bsRugPdoR1N3Vgerpw0m0uBMB5w==",
"version": "2.4.56",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.4.56.tgz",
"integrity": "sha512-LABHXnKyRawlzsXjdMKgPhVICapIoFcvqSTU4dmlB2C2/jzOehfmkFZQwvBhaIhx71obMJNUq7eJu1cftVnp4Q==",
"license": "MIT",
"dependencies": {
"@langchain/anthropic": "^0.3.24",
@ -46462,7 +46462,7 @@
},
"packages/api": {
"name": "@librechat/api",
"version": "1.2.5",
"version": "1.2.6",
"license": "ISC",
"devDependencies": {
"@babel/preset-env": "^7.21.5",
@ -46494,7 +46494,7 @@
"typescript": "^5.0.4"
},
"peerDependencies": {
"@librechat/agents": "^2.4.55",
"@librechat/agents": "^2.4.56",
"@librechat/data-schemas": "*",
"@modelcontextprotocol/sdk": "^1.13.3",
"axios": "^1.8.2",

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/api",
"version": "1.2.5",
"version": "1.2.6",
"type": "commonjs",
"description": "MCP services for LibreChat",
"main": "dist/index.js",
@ -69,7 +69,7 @@
"registry": "https://registry.npmjs.org/"
},
"peerDependencies": {
"@librechat/agents": "^2.4.55",
"@librechat/agents": "^2.4.56",
"@librechat/data-schemas": "*",
"@modelcontextprotocol/sdk": "^1.13.3",
"axios": "^1.8.2",

View file

@ -69,7 +69,7 @@ export async function createRun({
llmConfig.usage = true;
}
let reasoningKey: 'reasoning_content' | 'reasoning' | undefined;
let reasoningKey: 'reasoning_content' | 'reasoning' = 'reasoning_content';
if (provider === Providers.GOOGLE) {
reasoningKey = 'reasoning';
} else if (