🔄 refactor: Default Completion Title Prompt and Title Model Selection (#8646)

* refactor: prefer `agent.model` (user-facing value) over `agent.model_parameters.model` to ensure Azure mapping

* chore: update @librechat/agents to version 2.4.68 to use new default title prompt for completion title method
This commit is contained in:
Danny Avila 2025-07-24 10:38:26 -04:00 committed by GitHub
parent bef5c26bed
commit 01470ef9fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View file

@ -49,7 +49,7 @@
"@langchain/google-vertexai": "^0.2.13",
"@langchain/openai": "^0.5.18",
"@langchain/textsplitters": "^0.1.0",
"@librechat/agents": "^2.4.67",
"@librechat/agents": "^2.4.68",
"@librechat/api": "*",
"@librechat/data-schemas": "*",
"@node-saml/passport-saml": "^5.0.0",

View file

@ -1022,7 +1022,7 @@ class AgentClient extends BaseClient {
/** @type {import('@librechat/agents').ClientOptions} */
let clientOptions = {
maxTokens: 75,
model: agent.model_parameters.model,
model: agent.model || agent.model_parameters.model,
};
let titleProviderConfig = await getProviderConfig(endpoint);

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.67",
"@librechat/agents": "^2.4.68",
"@librechat/api": "*",
"@librechat/data-schemas": "*",
"@node-saml/passport-saml": "^5.0.0",
@ -21468,9 +21468,9 @@
}
},
"node_modules/@librechat/agents": {
"version": "2.4.67",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.4.67.tgz",
"integrity": "sha512-GHGTdRmBTpfI/Ps3/is1h4hTEX0rijFdhj6LIqXQzHx6Nnv2nNIIK8tMW/0oPVHcdKuRGrR6Nt6BLpAJMfckgg==",
"version": "2.4.68",
"resolved": "https://registry.npmjs.org/@librechat/agents/-/agents-2.4.68.tgz",
"integrity": "sha512-05UhnUJJ6/I8KVkhJ9NrQcm3UKhA/cXG8yT2VU+QQRJoDf7qnt47DRBP87ZEWRGMLh2civq1OWQPW2BHf2eL4A==",
"license": "MIT",
"dependencies": {
"@langchain/anthropic": "^0.3.24",
@ -48617,7 +48617,7 @@
},
"peerDependencies": {
"@langchain/core": "^0.3.62",
"@librechat/agents": "^2.4.67",
"@librechat/agents": "^2.4.68",
"@librechat/data-schemas": "*",
"@modelcontextprotocol/sdk": "^1.16.0",
"axios": "^1.8.2",

View file

@ -70,7 +70,7 @@
},
"peerDependencies": {
"@langchain/core": "^0.3.62",
"@librechat/agents": "^2.4.67",
"@librechat/agents": "^2.4.68",
"@librechat/data-schemas": "*",
"@modelcontextprotocol/sdk": "^1.16.0",
"axios": "^1.8.2",