@aigne/ideogram 0.4.10-beta.3 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.10](https://github.com/AIGNE-io/aigne-framework/compare/ideogram-v0.4.10-beta.4...ideogram-v0.4.10) (2025-11-21)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/core bumped to 1.69.0
11
+
12
+ ## [0.4.10-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/ideogram-v0.4.10-beta.3...ideogram-v0.4.10-beta.4) (2025-11-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * add timeout to doubao and ideogram image models ([#761](https://github.com/AIGNE-io/aigne-framework/issues/761)) ([c232483](https://github.com/AIGNE-io/aigne-framework/commit/c232483c6024426524c3310e64b22d9f63206227))
18
+
3
19
  ## [0.4.10-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/ideogram-v0.4.10-beta.2...ideogram-v0.4.10-beta.3) (2025-11-19)
4
20
 
5
21
 
@@ -18,6 +18,7 @@ export interface IdeogramImageModelOptions extends ImageModelOptions<IdeogramIma
18
18
  baseURL?: string;
19
19
  model?: string;
20
20
  modelOptions?: Omit<Partial<IdeogramImageModelInput>, "model">;
21
+ clientOptions?: Record<string, any>;
21
22
  }
22
23
  export declare class IdeogramImageModel extends ImageModel<IdeogramImageModelInput, IdeogramImageModelOutput> {
23
24
  options?: IdeogramImageModelOptions | undefined;
@@ -15,6 +15,7 @@ const ideogramImageModelOptionsSchema = zod_1.z.object({
15
15
  baseURL: zod_1.z.string().optional(),
16
16
  model: zod_1.z.string().optional(),
17
17
  modelOptions: zod_1.z.object({}).optional(),
18
+ clientOptions: zod_1.z.object({}).optional(),
18
19
  });
19
20
  class IdeogramImageModel extends core_1.ImageModel {
20
21
  options;
@@ -88,6 +89,7 @@ class IdeogramImageModel extends core_1.ImageModel {
88
89
  method: "POST",
89
90
  headers: { "api-key": apiKey },
90
91
  body: formData,
92
+ timeout: this.options?.clientOptions?.timeout ?? 60 * 1000,
91
93
  });
92
94
  const data = await response.json();
93
95
  return {
@@ -18,6 +18,7 @@ export interface IdeogramImageModelOptions extends ImageModelOptions<IdeogramIma
18
18
  baseURL?: string;
19
19
  model?: string;
20
20
  modelOptions?: Omit<Partial<IdeogramImageModelInput>, "model">;
21
+ clientOptions?: Record<string, any>;
21
22
  }
22
23
  export declare class IdeogramImageModel extends ImageModel<IdeogramImageModelInput, IdeogramImageModelOutput> {
23
24
  options?: IdeogramImageModelOptions | undefined;
@@ -18,6 +18,7 @@ export interface IdeogramImageModelOptions extends ImageModelOptions<IdeogramIma
18
18
  baseURL?: string;
19
19
  model?: string;
20
20
  modelOptions?: Omit<Partial<IdeogramImageModelInput>, "model">;
21
+ clientOptions?: Record<string, any>;
21
22
  }
22
23
  export declare class IdeogramImageModel extends ImageModel<IdeogramImageModelInput, IdeogramImageModelOutput> {
23
24
  options?: IdeogramImageModelOptions | undefined;
@@ -12,6 +12,7 @@ const ideogramImageModelOptionsSchema = z.object({
12
12
  baseURL: z.string().optional(),
13
13
  model: z.string().optional(),
14
14
  modelOptions: z.object({}).optional(),
15
+ clientOptions: z.object({}).optional(),
15
16
  });
16
17
  export class IdeogramImageModel extends ImageModel {
17
18
  options;
@@ -85,6 +86,7 @@ export class IdeogramImageModel extends ImageModel {
85
86
  method: "POST",
86
87
  headers: { "api-key": apiKey },
87
88
  body: formData,
89
+ timeout: this.options?.clientOptions?.timeout ?? 60 * 1000,
88
90
  });
89
91
  const data = await response.json();
90
92
  return {
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "ufo": "^1.6.1",
38
38
  "zod": "3.25.67",
39
- "@aigne/core": "1.69.0-beta.2"
39
+ "@aigne/core": "1.69.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/bun": "^1.2.22",
@@ -47,7 +47,7 @@
47
47
  "rimraf": "^6.0.1",
48
48
  "typescript": "^5.9.2"
49
49
  },
50
- "version": "0.4.10-beta.3",
50
+ "version": "0.4.10",
51
51
  "scripts": {
52
52
  "lint": "tsc --noEmit",
53
53
  "build": "tsc --build scripts/tsconfig.build.json",