mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 05:02:14 +00:00
Fix alt+backspace in Kitty mode and clamp Codex effort (refs #752)
This commit is contained in:
parent
6484ae279d
commit
be26d362fa
3 changed files with 7 additions and 6 deletions
|
|
@ -209,6 +209,7 @@ function buildSystemPrompt(userSystemPrompt?: string): { instructions: string; d
|
|||
|
||||
function clampReasoningEffort(modelId: string, effort: string): string {
|
||||
const id = modelId.includes("/") ? modelId.split("/").pop()! : modelId;
|
||||
if (id.startsWith("gpt-5.2") && effort === "minimal") return "low";
|
||||
if (id === "gpt-5.1" && effort === "xhigh") return "high";
|
||||
if (id === "gpt-5.1-codex-mini") return effort === "high" || effort === "xhigh" ? "high" : "medium";
|
||||
return effort;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue