mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-11 16:53:45 +00:00
refactor(tests): update summarizationConfig tests to reflect changes in enabled property
Modified tests to check for the new `summarizationEnabled` property instead of the deprecated `enabled` field in the summarization configuration. This change ensures that the tests accurately validate the current configuration structure and behavior of the agents.
This commit is contained in:
parent
b8bdb0d0fc
commit
eccd248689
1 changed files with 5 additions and 2 deletions
|
|
@ -230,7 +230,9 @@ describe('summarizationConfig field passthrough', () => {
|
|||
});
|
||||
const config = agents[0].summarizationConfig as Record<string, unknown>;
|
||||
expect(config).toBeDefined();
|
||||
expect(config.enabled).toBe(true);
|
||||
// `enabled` is not forwarded to the agent-level config — it is resolved
|
||||
// into the separate `summarizationEnabled` boolean on the agent input.
|
||||
expect(agents[0].summarizationEnabled).toBe(true);
|
||||
expect(config.trigger).toEqual({ type: 'token_count', value: 8000 });
|
||||
expect(config.provider).toBe('anthropic');
|
||||
expect(config.model).toBe('claude-3-haiku');
|
||||
|
|
@ -247,7 +249,8 @@ describe('summarizationConfig field passthrough', () => {
|
|||
});
|
||||
const config = agents[0].summarizationConfig as Record<string, unknown>;
|
||||
expect(config).toBeDefined();
|
||||
expect(config.enabled).toBe(true);
|
||||
// `enabled` is resolved into `summarizationEnabled`, not forwarded on config
|
||||
expect(agents[0].summarizationEnabled).toBe(true);
|
||||
expect(config.provider).toBe('openAI');
|
||||
expect(config.model).toBe('gpt-4o');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue