mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
refactor: Update BaseClient to handle non-ephemeral agents in conversation logic
- Added a check for non-ephemeral agents in BaseClient, modifying the exceptions set to include 'model' when applicable. - Enhanced conversation handling to improve flexibility based on agent type.
This commit is contained in:
parent
12584e42b3
commit
6738acbe04
1 changed files with 5 additions and 0 deletions
|
|
@ -966,6 +966,11 @@ class BaseClient {
|
|||
|
||||
const unsetFields = {};
|
||||
const exceptions = new Set(['spec', 'iconURL']);
|
||||
const hasNonEphemeralAgent =
|
||||
endpointOptions?.agent_id && endpointOptions.agent_id !== Constants.EPHEMERAL_AGENT_ID;
|
||||
if (hasNonEphemeralAgent) {
|
||||
exceptions.add('model');
|
||||
}
|
||||
if (existingConvo != null) {
|
||||
this.fetchedConvo = true;
|
||||
for (const key in existingConvo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue