mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
Use reserveTokens for branch summary (tokens left for prompt + response)
- tokenBudget = contextWindow - reserveTokens - Default 16384, same as compaction - Consistent naming with CompactionSettings.reserveTokens
This commit is contained in:
parent
f5f39f08f1
commit
dc5fc4fc40
3 changed files with 12 additions and 8 deletions
|
|
@ -1656,7 +1656,7 @@ export class AgentSession {
|
|||
apiKey,
|
||||
signal: this._branchSummaryAbortController.signal,
|
||||
customInstructions: options.customInstructions,
|
||||
maxTokens: branchSummarySettings.maxTokens,
|
||||
reserveTokens: branchSummarySettings.reserveTokens,
|
||||
});
|
||||
this._branchSummaryAbortController = undefined;
|
||||
if (result.aborted) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue