Skip to content

Commit 904f369

Browse files
authored
Merge pull request RooCodeInc#1198 from RooVetGit/v3.7.5
V3.7.5
2 parents 3860abf + 8ec903d commit 904f369

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cold-poems-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
v3.7.5

src/core/sliding-window/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ export function truncateConversationIfNeeded(
4949
*/
5050
function getMaxTokens(modelInfo: ModelInfo): number {
5151
// The buffer needs to be at least as large as `modelInfo.maxTokens`, or 20% of the context window if for some reason it's not set.
52-
return modelInfo.contextWindow - Math.max(modelInfo.maxTokens || modelInfo.contextWindow * 0.2)
52+
return modelInfo.contextWindow - (modelInfo.maxTokens || modelInfo.contextWindow * 0.2)
5353
}

0 commit comments

Comments
 (0)