Merge pull request #1198 from RooVetGit/v3.7.5

V3.7.5
This commit is contained in:
Chris Estreich 2025-02-25 23:04:59 -08:00 committed by GitHub
commit 904f369574
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"roo-cline": patch
---
v3.7.5

View file

@ -49,5 +49,5 @@ export function truncateConversationIfNeeded(
*/
function getMaxTokens(modelInfo: ModelInfo): number {
// 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.
return modelInfo.contextWindow - Math.max(modelInfo.maxTokens || modelInfo.contextWindow * 0.2)
return modelInfo.contextWindow - (modelInfo.maxTokens || modelInfo.contextWindow * 0.2)
}