Skip to content

Commit 0135071

Browse files
committed
fix(xai): allow slower image edits
1 parent ba31afb commit 0135071

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/xai/image-generation-provider.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ describe("xai image generation provider", () => {
127127
expect(postJsonRequestMock).toHaveBeenCalledWith(
128128
expect.objectContaining({
129129
url: expect.stringContaining("/images/generations"),
130+
timeoutMs: 180_000,
130131
body: expect.objectContaining({
131132
aspect_ratio: "2:3",
132133
resolution: "2k",

extensions/xai/image-generation-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from "openclaw/plugin-sdk/text-runtime";
1414
import { XAI_BASE_URL, XAI_DEFAULT_IMAGE_MODEL, XAI_IMAGE_MODELS } from "./model-definitions.js";
1515

16-
const DEFAULT_TIMEOUT_MS = 60_000;
16+
const DEFAULT_TIMEOUT_MS = 180_000;
1717

1818
const XAI_SUPPORTED_ASPECT_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "2:3", "3:2"] as const;
1919

0 commit comments

Comments
 (0)