mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
fix: preserve chatProjectId through the new-chat template reduction
The param-endpoint guard in newConversation reduced a new chat's template to
{ endpoint } only, dropping the chatProjectId injected by the Model Selector /
@ switch — so switching models cleared the project scope. Keep chatProjectId
in the reduced template.
This commit is contained in:
parent
e185e2ce0a
commit
ed1744976b
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ const useNewConvo = (index = 0) => {
|
|||
isParamEndpoint(_preset?.endpoint ?? '', _preset?.endpointType ?? '');
|
||||
const template =
|
||||
paramEndpoint === true && templateConvoId && templateConvoId === Constants.NEW_CONVO
|
||||
? { endpoint: _template.endpoint }
|
||||
? { endpoint: _template.endpoint, chatProjectId: _template.chatProjectId }
|
||||
: _template;
|
||||
|
||||
const conversation = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue