feat(settings): add xhigh reasoning effort level and update Claude Code model placeholders to claude-opus-4.7
This commit is contained in:
@@ -257,11 +257,11 @@ const CLAUDE_MODEL_ENV_KEYS = {
|
||||
|
||||
const CLAUDE_EFFORT_LEVEL_CONFIG_KEY = "effortLevel"
|
||||
|
||||
type ClaudeEffortLevel = "" | "low" | "medium" | "high"
|
||||
type ClaudeEffortLevel = "" | "low" | "medium" | "high" | "xhigh"
|
||||
|
||||
const CLAUDE_EFFORT_LEVEL_VALUES: ReadonlyArray<
|
||||
Exclude<ClaudeEffortLevel, "">
|
||||
> = ["low", "medium", "high"]
|
||||
> = ["low", "medium", "high", "xhigh"]
|
||||
|
||||
function normalizeClaudeEffortLevel(value: unknown): ClaudeEffortLevel {
|
||||
if (typeof value !== "string") return ""
|
||||
@@ -269,7 +269,8 @@ function normalizeClaudeEffortLevel(value: unknown): ClaudeEffortLevel {
|
||||
if (
|
||||
normalized === "low" ||
|
||||
normalized === "medium" ||
|
||||
normalized === "high"
|
||||
normalized === "high" ||
|
||||
normalized === "xhigh"
|
||||
) {
|
||||
return normalized
|
||||
}
|
||||
@@ -7334,7 +7335,7 @@ supports_websockets = true`}
|
||||
event.target.value
|
||||
)
|
||||
}}
|
||||
placeholder="claude-opus-4-6"
|
||||
placeholder="claude-opus-4.7"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
@@ -7379,7 +7380,7 @@ supports_websockets = true`}
|
||||
event.target.value
|
||||
)
|
||||
}}
|
||||
placeholder="claude-opus-4-6"
|
||||
placeholder="claude-opus-4.7"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user