mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-08 22:21:23 +00:00
commit
904f369574
2 changed files with 6 additions and 1 deletions
5
.changeset/cold-poems-change.md
Normal file
5
.changeset/cold-poems-change.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
v3.7.5
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue