mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 06:41:09 +00:00
chore(docs): translate with GPT-5.6 xhigh
This commit is contained in:
@@ -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)")
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user