chore(docs): translate with GPT-5.6 xhigh

This commit is contained in:
Peter Steinberger
2026-07-11 06:05:53 -04:00
parent 6268eeef15
commit cfda86babe
4 changed files with 9 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ func main() {
docsRoot = flag.String("docs", "docs", "docs root")
tmPath = flag.String("tm", "", "translation memory path")
mode = flag.String("mode", "segment", "translation mode (segment|doc)")
thinking = flag.String("thinking", "high", "thinking level (low|medium|high|xhigh)")
thinking = flag.String("thinking", "xhigh", "thinking level (low|medium|high|xhigh)")
overwrite = flag.Bool("overwrite", false, "overwrite existing translations")
allowPartial = flag.Bool("allow-partial", false, "write successful doc-mode outputs even when another file fails")
maxFiles = flag.Int("max", 0, "max files to process (0 = all)")

View File

@@ -349,7 +349,7 @@ func normalizeThinking(value string) string {
case "low", "medium", "high", "xhigh":
return strings.ToLower(strings.TrimSpace(value))
default:
return "high"
return "xhigh"
}
}

View File

@@ -64,6 +64,12 @@ func TestDocsI18nCommandWaitDelayUsesEnvOverride(t *testing.T) {
}
}
func TestNormalizeThinkingDefaultsToXHigh(t *testing.T) {
if got := normalizeThinking(""); got != "xhigh" {
t.Fatalf("expected xhigh default, got %q", got)
}
}
func TestIsRetryableTranslateErrorRejectsDeadlineExceeded(t *testing.T) {
t.Parallel()

View File

@@ -15,7 +15,7 @@ const (
docsI18nEngineName = "codex"
envDocsI18nProvider = "OPENCLAW_DOCS_I18N_PROVIDER"
envDocsI18nModel = "OPENCLAW_DOCS_I18N_MODEL"
defaultOpenAIModel = "gpt-5.5"
defaultOpenAIModel = "gpt-5.6"
defaultFallbackProvider = "openai"
defaultFallbackModelName = defaultOpenAIModel
)