mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
🛡️ fix: Title Generation Skip Logic Based On Endpoint Config (#9811)
This commit is contained in:
parent
b85950aa9a
commit
f9aebeba92
3 changed files with 132 additions and 1 deletions
|
|
@ -54,6 +54,11 @@ const addTitle = async (req, { text, response, client }) => {
|
|||
clearTimeout(timeoutId);
|
||||
}
|
||||
|
||||
if (!title) {
|
||||
logger.debug(`[${key}] No title generated`);
|
||||
return;
|
||||
}
|
||||
|
||||
await titleCache.set(key, title, 120000);
|
||||
await saveConvo(
|
||||
req,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue