mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
fix: set to default model in searchPlaceholderConversation
fix: set max auth cookie to 7 days
This commit is contained in:
parent
f595cb2aa1
commit
319e4f0f95
2 changed files with 6 additions and 5 deletions
|
|
@ -29,7 +29,8 @@ const projectPath = path.join(__dirname, '..', '..', 'client');
|
||||||
session({
|
session({
|
||||||
secret: 'chatgpt-clone-random-secrect',
|
secret: 'chatgpt-clone-random-secrect',
|
||||||
resave: false,
|
resave: false,
|
||||||
saveUninitialized: true
|
saveUninitialized: true,
|
||||||
|
cookie: { maxAge: 7 * 24 * 60 * 60 * 1000 } // 7 days
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ const useConversation = () => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const searchPlaceholderConversation = ({ model = null, chatGptLabel = null, promptPrefix = null } = {}) => {
|
const searchPlaceholderConversation = () => {
|
||||||
switchToConversation(
|
switchToConversation(
|
||||||
{
|
{
|
||||||
conversationId: 'search',
|
conversationId: 'search',
|
||||||
|
|
@ -140,9 +140,9 @@ const useConversation = () => {
|
||||||
conversationSignature: null,
|
conversationSignature: null,
|
||||||
clientId: null,
|
clientId: null,
|
||||||
invocationId: null,
|
invocationId: null,
|
||||||
model: model,
|
model: null,
|
||||||
chatGptLabel: chatGptLabel,
|
chatGptLabel: null,
|
||||||
promptPrefix: promptPrefix,
|
promptPrefix: null,
|
||||||
user: null,
|
user: null,
|
||||||
suggestions: [],
|
suggestions: [],
|
||||||
toneStyle: null
|
toneStyle: null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue