mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Default middle-out compression to on
This commit is contained in:
parent
a253a37567
commit
9b91ab21b6
4 changed files with 8 additions and 2 deletions
5
.changeset/weak-cameras-hope.md
Normal file
5
.changeset/weak-cameras-hope.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Default middle-out compression to on for OpenRouter
|
||||
|
|
@ -114,7 +114,7 @@ export class OpenRouterHandler extends BaseProvider implements SingleCompletionH
|
|||
stream: true,
|
||||
include_reasoning: true,
|
||||
// This way, the transforms field will only be included in the parameters when openRouterUseMiddleOutTransform is true.
|
||||
...(this.options.openRouterUseMiddleOutTransform && { transforms: ["middle-out"] }),
|
||||
...((this.options.openRouterUseMiddleOutTransform ?? true) && { transforms: ["middle-out"] }),
|
||||
}
|
||||
|
||||
const stream = await this.client.chat.completions.create(completionParams)
|
||||
|
|
|
|||
|
|
@ -2430,6 +2430,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||
autoApprovalEnabled: autoApprovalEnabled ?? false,
|
||||
customModes,
|
||||
maxOpenTabsContext: maxOpenTabsContext ?? 20,
|
||||
openRouterUseMiddleOutTransform: openRouterUseMiddleOutTransform ?? true,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -498,7 +498,7 @@ const ApiOptions = ({
|
|||
/>
|
||||
)}
|
||||
<Checkbox
|
||||
checked={apiConfiguration?.openRouterUseMiddleOutTransform || false}
|
||||
checked={apiConfiguration?.openRouterUseMiddleOutTransform ?? true}
|
||||
onChange={handleInputChange("openRouterUseMiddleOutTransform", noTransform)}>
|
||||
Compress prompts and message chains to the context size (
|
||||
<a href="https://openrouter.ai/docs/transforms">OpenRouter Transforms</a>)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue