mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
fixed profile context condensation threshold (#5230)
This commit is contained in:
parent
cd60bb3a7e
commit
8c493b393f
1 changed files with 3 additions and 1 deletions
|
|
@ -1708,6 +1708,8 @@ export class Task extends EventEmitter<ClineEvents> {
|
|||
|
||||
const contextWindow = modelInfo.contextWindow
|
||||
|
||||
const currentProfileId = state?.listApiConfigMeta.find((profile) => profile.name === state?.currentApiConfigName)?.id ?? "default";
|
||||
|
||||
const truncateResult = await truncateConversationIfNeeded({
|
||||
messages: this.apiConversationHistory,
|
||||
totalTokens: contextTokens,
|
||||
|
|
@ -1721,7 +1723,7 @@ export class Task extends EventEmitter<ClineEvents> {
|
|||
customCondensingPrompt,
|
||||
condensingApiHandler,
|
||||
profileThresholds,
|
||||
currentProfileId: state?.currentApiConfigName || "default",
|
||||
currentProfileId,
|
||||
})
|
||||
if (truncateResult.messages !== this.apiConversationHistory) {
|
||||
await this.overwriteApiConversationHistory(truncateResult.messages)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue