fix: use API-supported docs i18n model · openclaw/openclaw@d6d0506
steipete
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -158,7 +158,7 @@ printf 'translated from codex\n' > "$out"
|
158 | 158 | got, err := runCodexExecPrompt(context.Background(), codexPromptRequest{ |
159 | 159 | SystemPrompt: "Translate.", |
160 | 160 | Message: "Hello", |
161 | | -Model: "gpt-5.5", |
| 161 | +Model: "gpt-5.2", |
162 | 162 | Thinking: "high", |
163 | 163 | }) |
164 | 164 | if err != nil { |
@@ -170,15 +170,15 @@ printf 'translated from codex\n' > "$out"
|
170 | 170 | } |
171 | 171 | |
172 | 172 | func TestPreviewCommandOutputFlattensAndTruncates(t *testing.T) { |
173 | | -input := "line one\n\nline two\tline three " + strings.Repeat("x", 600) |
| 173 | +input := "line one\n\nline two\tline three " + strings.Repeat("x", 1200) |
174 | 174 | preview := previewCommandOutput(input, "") |
175 | 175 | if strings.Contains(preview, "\n") { |
176 | 176 | t.Fatalf("expected flattened whitespace, got %q", preview) |
177 | 177 | } |
178 | 178 | if !strings.HasPrefix(preview, "line one line two line three ") { |
179 | 179 | t.Fatalf("unexpected preview prefix: %q", preview) |
180 | 180 | } |
181 | | -if !strings.HasSuffix(preview, "...") { |
182 | | -t.Fatalf("expected truncation suffix, got %q", preview) |
| 181 | +if !strings.Contains(preview, " ... ") { |
| 182 | +t.Fatalf("expected truncation marker, got %q", preview) |
183 | 183 | } |
184 | 184 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。