fix(xai): allow slower image edits · openclaw/openclaw@0135071
steipete
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -127,6 +127,7 @@ describe("xai image generation provider", () => {
|
127 | 127 | expect(postJsonRequestMock).toHaveBeenCalledWith( |
128 | 128 | expect.objectContaining({ |
129 | 129 | url: expect.stringContaining("/images/generations"), |
| 130 | +timeoutMs: 180_000, |
130 | 131 | body: expect.objectContaining({ |
131 | 132 | aspect_ratio: "2:3", |
132 | 133 | resolution: "2k", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ import {
|
13 | 13 | } from "openclaw/plugin-sdk/text-runtime"; |
14 | 14 | import { XAI_BASE_URL, XAI_DEFAULT_IMAGE_MODEL, XAI_IMAGE_MODELS } from "./model-definitions.js"; |
15 | 15 | |
16 | | -const DEFAULT_TIMEOUT_MS = 60_000; |
| 16 | +const DEFAULT_TIMEOUT_MS = 180_000; |
17 | 17 | |
18 | 18 | const XAI_SUPPORTED_ASPECT_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "2:3", "3:2"] as const; |
19 | 19 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。