mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
Use token-based maxTokens instead of fraction-based reserveFraction
- BranchSummarySettings.maxTokens (default 100000) instead of reserveFraction - More intuitive and consistent with CompactionSettings.keepRecentTokens
This commit is contained in:
parent
839a46e6fe
commit
f5f39f08f1
3 changed files with 8 additions and 12 deletions
|
|
@ -1656,7 +1656,7 @@ export class AgentSession {
|
|||
apiKey,
|
||||
signal: this._branchSummaryAbortController.signal,
|
||||
customInstructions: options.customInstructions,
|
||||
reserveFraction: branchSummarySettings.reserveFraction,
|
||||
maxTokens: branchSummarySettings.maxTokens,
|
||||
});
|
||||
this._branchSummaryAbortController = undefined;
|
||||
if (result.aborted) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue