@aigne/doubao 1.3.0-beta.8 → 1.3.0

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,241 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.0](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.24...doubao-v1.3.0) (2026-01-16)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/openai bumped to 0.16.16
11
+ * devDependencies
12
+ * @aigne/core bumped to 1.72.0
13
+ * @aigne/test-utils bumped to 0.5.69
14
+
15
+ ## [1.3.0-beta.24](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.23...doubao-v1.3.0-beta.24) (2026-01-16)
16
+
17
+
18
+ ### Features
19
+
20
+ * add prompt caching for OpenAI/Gemini/Anthropic and cache token display ([#838](https://github.com/AIGNE-io/aigne-framework/issues/838)) ([46c628f](https://github.com/AIGNE-io/aigne-framework/commit/46c628f180572ea1b955d1a9888aad6145204842))
21
+ * improve image model architecture and file handling ([#527](https://github.com/AIGNE-io/aigne-framework/issues/527)) ([4db50aa](https://github.com/AIGNE-io/aigne-framework/commit/4db50aa0387a1a0f045ca11aaa61613e36ca7597))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * add fetch utility with timeout and enhanced error handling ([#694](https://github.com/AIGNE-io/aigne-framework/issues/694)) ([c2d4076](https://github.com/AIGNE-io/aigne-framework/commit/c2d4076ec590150d2751591a4f723721f78381e9))
27
+ * add prefer input file type option for image model ([#536](https://github.com/AIGNE-io/aigne-framework/issues/536)) ([3cba8a5](https://github.com/AIGNE-io/aigne-framework/commit/3cba8a5562233a1567b49b6dd5c446c0760f5c4c))
28
+ * 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))
29
+ * bump version ([696560f](https://github.com/AIGNE-io/aigne-framework/commit/696560fa2673eddcb4d00ac0523fbbbde7273cb3))
30
+ * bump version ([70d217c](https://github.com/AIGNE-io/aigne-framework/commit/70d217c8360dd0dda7f5f17011c4e92ec836e801))
31
+ * bump version ([af04b69](https://github.com/AIGNE-io/aigne-framework/commit/af04b6931951afa35d52065430acc7fef4b10087))
32
+ * bump version ([ba7ad18](https://github.com/AIGNE-io/aigne-framework/commit/ba7ad184fcf32b49bf0507a3cb638d20fb00690d))
33
+ * bump version ([93a1c10](https://github.com/AIGNE-io/aigne-framework/commit/93a1c10cf35f88eaafe91092481f5d087bd5b3a9))
34
+ * improve test coverage tracking and reporting ([#903](https://github.com/AIGNE-io/aigne-framework/issues/903)) ([031144e](https://github.com/AIGNE-io/aigne-framework/commit/031144e74f29e882cffe52ffda8f7a18c76ace7f))
35
+ * release new version ([#509](https://github.com/AIGNE-io/aigne-framework/issues/509)) ([822ccd2](https://github.com/AIGNE-io/aigne-framework/commit/822ccd2c374cdcef187066e102dc79230e2eebff))
36
+ * standardize file parameter naming across models ([#534](https://github.com/AIGNE-io/aigne-framework/issues/534)) ([f159a9d](https://github.com/AIGNE-io/aigne-framework/commit/f159a9d6af21ec0e99641996b150560929845845))
37
+ * support the correct 3.0 model ([#514](https://github.com/AIGNE-io/aigne-framework/issues/514)) ([98e0d44](https://github.com/AIGNE-io/aigne-framework/commit/98e0d44ce2c4c7b043d5fc934c6e312ffa821521))
38
+
39
+
40
+ ### Dependencies
41
+
42
+ * The following workspace dependencies were updated
43
+ * dependencies
44
+ * @aigne/openai bumped to 0.16.16-beta.25
45
+ * devDependencies
46
+ * @aigne/core bumped to 1.72.0-beta.25
47
+ * @aigne/test-utils bumped to 0.5.69-beta.25
48
+
49
+ ## [1.3.0-beta.23](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.22...doubao-v1.3.0-beta.23) (2026-01-16)
50
+
51
+
52
+ ### Dependencies
53
+
54
+ * The following workspace dependencies were updated
55
+ * dependencies
56
+ * @aigne/openai bumped to 0.16.16-beta.24
57
+ * devDependencies
58
+ * @aigne/core bumped to 1.72.0-beta.24
59
+ * @aigne/test-utils bumped to 0.5.69-beta.24
60
+
61
+ ## [1.3.0-beta.22](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.21...doubao-v1.3.0-beta.22) (2026-01-15)
62
+
63
+
64
+ ### Dependencies
65
+
66
+ * The following workspace dependencies were updated
67
+ * dependencies
68
+ * @aigne/openai bumped to 0.16.16-beta.23
69
+ * devDependencies
70
+ * @aigne/core bumped to 1.72.0-beta.23
71
+ * @aigne/test-utils bumped to 0.5.69-beta.23
72
+
73
+ ## [1.3.0-beta.21](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.20...doubao-v1.3.0-beta.21) (2026-01-15)
74
+
75
+
76
+ ### Dependencies
77
+
78
+ * The following workspace dependencies were updated
79
+ * dependencies
80
+ * @aigne/openai bumped to 0.16.16-beta.22
81
+ * devDependencies
82
+ * @aigne/core bumped to 1.72.0-beta.22
83
+ * @aigne/test-utils bumped to 0.5.69-beta.22
84
+
85
+ ## [1.3.0-beta.20](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.19...doubao-v1.3.0-beta.20) (2026-01-15)
86
+
87
+
88
+ ### Dependencies
89
+
90
+ * The following workspace dependencies were updated
91
+ * dependencies
92
+ * @aigne/openai bumped to 0.16.16-beta.21
93
+ * devDependencies
94
+ * @aigne/core bumped to 1.72.0-beta.21
95
+ * @aigne/test-utils bumped to 0.5.69-beta.21
96
+
97
+ ## [1.3.0-beta.19](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.18...doubao-v1.3.0-beta.19) (2026-01-15)
98
+
99
+
100
+ ### Dependencies
101
+
102
+ * The following workspace dependencies were updated
103
+ * dependencies
104
+ * @aigne/openai bumped to 0.16.16-beta.20
105
+ * devDependencies
106
+ * @aigne/core bumped to 1.72.0-beta.20
107
+ * @aigne/test-utils bumped to 0.5.69-beta.20
108
+
109
+ ## [1.3.0-beta.18](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.17...doubao-v1.3.0-beta.18) (2026-01-14)
110
+
111
+
112
+ ### Bug Fixes
113
+
114
+ * improve test coverage tracking and reporting ([#903](https://github.com/AIGNE-io/aigne-framework/issues/903)) ([031144e](https://github.com/AIGNE-io/aigne-framework/commit/031144e74f29e882cffe52ffda8f7a18c76ace7f))
115
+
116
+
117
+ ### Dependencies
118
+
119
+ * The following workspace dependencies were updated
120
+ * dependencies
121
+ * @aigne/openai bumped to 0.16.16-beta.19
122
+ * devDependencies
123
+ * @aigne/core bumped to 1.72.0-beta.19
124
+ * @aigne/test-utils bumped to 0.5.69-beta.19
125
+
126
+ ## [1.3.0-beta.17](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.16...doubao-v1.3.0-beta.17) (2026-01-13)
127
+
128
+
129
+ ### Dependencies
130
+
131
+ * The following workspace dependencies were updated
132
+ * dependencies
133
+ * @aigne/openai bumped to 0.16.16-beta.18
134
+ * devDependencies
135
+ * @aigne/core bumped to 1.72.0-beta.18
136
+ * @aigne/test-utils bumped to 0.5.69-beta.18
137
+
138
+ ## [1.3.0-beta.16](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.15...doubao-v1.3.0-beta.16) (2026-01-12)
139
+
140
+
141
+ ### Dependencies
142
+
143
+ * The following workspace dependencies were updated
144
+ * dependencies
145
+ * @aigne/openai bumped to 0.16.16-beta.17
146
+ * devDependencies
147
+ * @aigne/core bumped to 1.72.0-beta.17
148
+ * @aigne/test-utils bumped to 0.5.69-beta.17
149
+
150
+ ## [1.3.0-beta.15](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.14...doubao-v1.3.0-beta.15) (2026-01-12)
151
+
152
+
153
+ ### Dependencies
154
+
155
+ * The following workspace dependencies were updated
156
+ * dependencies
157
+ * @aigne/openai bumped to 0.16.16-beta.16
158
+ * devDependencies
159
+ * @aigne/core bumped to 1.72.0-beta.16
160
+ * @aigne/test-utils bumped to 0.5.69-beta.16
161
+
162
+ ## [1.3.0-beta.14](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.13...doubao-v1.3.0-beta.14) (2026-01-10)
163
+
164
+
165
+ ### Dependencies
166
+
167
+ * The following workspace dependencies were updated
168
+ * dependencies
169
+ * @aigne/openai bumped to 0.16.16-beta.15
170
+ * devDependencies
171
+ * @aigne/core bumped to 1.72.0-beta.15
172
+ * @aigne/test-utils bumped to 0.5.69-beta.15
173
+
174
+ ## [1.3.0-beta.13](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.12...doubao-v1.3.0-beta.13) (2026-01-09)
175
+
176
+
177
+ ### Dependencies
178
+
179
+ * The following workspace dependencies were updated
180
+ * dependencies
181
+ * @aigne/openai bumped to 0.16.16-beta.14
182
+ * devDependencies
183
+ * @aigne/core bumped to 1.72.0-beta.14
184
+ * @aigne/test-utils bumped to 0.5.69-beta.14
185
+
186
+ ## [1.3.0-beta.12](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.11...doubao-v1.3.0-beta.12) (2026-01-08)
187
+
188
+
189
+ ### Bug Fixes
190
+
191
+ * bump version ([696560f](https://github.com/AIGNE-io/aigne-framework/commit/696560fa2673eddcb4d00ac0523fbbbde7273cb3))
192
+
193
+
194
+ ### Dependencies
195
+
196
+ * The following workspace dependencies were updated
197
+ * dependencies
198
+ * @aigne/openai bumped to 0.16.16-beta.13
199
+ * devDependencies
200
+ * @aigne/core bumped to 1.72.0-beta.13
201
+ * @aigne/test-utils bumped to 0.5.69-beta.13
202
+
203
+ ## [1.3.0-beta.11](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.10...doubao-v1.3.0-beta.11) (2026-01-07)
204
+
205
+
206
+ ### Dependencies
207
+
208
+ * The following workspace dependencies were updated
209
+ * dependencies
210
+ * @aigne/openai bumped to 0.16.16-beta.12
211
+ * devDependencies
212
+ * @aigne/core bumped to 1.72.0-beta.12
213
+ * @aigne/test-utils bumped to 0.5.69-beta.12
214
+
215
+ ## [1.3.0-beta.10](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.9...doubao-v1.3.0-beta.10) (2026-01-06)
216
+
217
+
218
+ ### Dependencies
219
+
220
+ * The following workspace dependencies were updated
221
+ * dependencies
222
+ * @aigne/openai bumped to 0.16.16-beta.11
223
+ * devDependencies
224
+ * @aigne/core bumped to 1.72.0-beta.11
225
+ * @aigne/test-utils bumped to 0.5.69-beta.11
226
+
227
+ ## [1.3.0-beta.9](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.8...doubao-v1.3.0-beta.9) (2026-01-06)
228
+
229
+
230
+ ### Dependencies
231
+
232
+ * The following workspace dependencies were updated
233
+ * dependencies
234
+ * @aigne/openai bumped to 0.16.16-beta.10
235
+ * devDependencies
236
+ * @aigne/core bumped to 1.72.0-beta.10
237
+ * @aigne/test-utils bumped to 0.5.69-beta.10
238
+
3
239
  ## [1.3.0-beta.8](https://github.com/AIGNE-io/aigne-framework/compare/doubao-v1.3.0-beta.7...doubao-v1.3.0-beta.8) (2026-01-02)
4
240
 
5
241
 
@@ -30,5 +30,5 @@ export declare class DoubaoImageModel extends ImageModel<DoubaoImageModelInput,
30
30
  };
31
31
  get modelOptions(): Omit<Partial<DoubaoImageModelInput>, "model"> | undefined;
32
32
  private extractDataObjects;
33
- process(input: DoubaoImageModelInput, options: AgentInvokeOptions): Promise<ImageModelOutput>;
33
+ process(input: DoubaoImageModelInput, _options: AgentInvokeOptions): Promise<ImageModelOutput>;
34
34
  }
@@ -61,7 +61,7 @@ class DoubaoImageModel extends core_1.ImageModel {
61
61
  }
62
62
  return dataObjects;
63
63
  }
64
- async process(input, options) {
64
+ async process(input, _options) {
65
65
  const model = input.modelOptions?.model || this.credential.model;
66
66
  const { url, apiKey } = this.credential;
67
67
  if (!apiKey) {
@@ -105,7 +105,7 @@ class DoubaoImageModel extends core_1.ImageModel {
105
105
  throw new Error(`${this.name} only support ${Object.keys(map).join(", ")}`);
106
106
  }
107
107
  const mergeInput = { ...this.modelOptions, ...input.modelOptions, ...input };
108
- const image = await Promise.all((0, type_utils_js_1.flat)(input.image).map((image) => this.transformFileType("file", image, options).then((file) => `data:${file.mimeType || "image/png"};base64,${file.data}`)));
108
+ const image = await Promise.all((0, type_utils_js_1.flat)(input.image).map((image) => this.transformFileType("file", image).then((file) => `data:${file.mimeType || "image/png"};base64,${file.data}`)));
109
109
  const body = {
110
110
  ...(0, camelize_js_1.snakelize)((0, type_utils_js_1.pick)(mergeInput, map[key])),
111
111
  model,
@@ -30,5 +30,5 @@ export declare class DoubaoImageModel extends ImageModel<DoubaoImageModelInput,
30
30
  };
31
31
  get modelOptions(): Omit<Partial<DoubaoImageModelInput>, "model"> | undefined;
32
32
  private extractDataObjects;
33
- process(input: DoubaoImageModelInput, options: AgentInvokeOptions): Promise<ImageModelOutput>;
33
+ process(input: DoubaoImageModelInput, _options: AgentInvokeOptions): Promise<ImageModelOutput>;
34
34
  }
@@ -30,5 +30,5 @@ export declare class DoubaoImageModel extends ImageModel<DoubaoImageModelInput,
30
30
  };
31
31
  get modelOptions(): Omit<Partial<DoubaoImageModelInput>, "model"> | undefined;
32
32
  private extractDataObjects;
33
- process(input: DoubaoImageModelInput, options: AgentInvokeOptions): Promise<ImageModelOutput>;
33
+ process(input: DoubaoImageModelInput, _options: AgentInvokeOptions): Promise<ImageModelOutput>;
34
34
  }
@@ -58,7 +58,7 @@ export class DoubaoImageModel extends ImageModel {
58
58
  }
59
59
  return dataObjects;
60
60
  }
61
- async process(input, options) {
61
+ async process(input, _options) {
62
62
  const model = input.modelOptions?.model || this.credential.model;
63
63
  const { url, apiKey } = this.credential;
64
64
  if (!apiKey) {
@@ -102,7 +102,7 @@ export class DoubaoImageModel extends ImageModel {
102
102
  throw new Error(`${this.name} only support ${Object.keys(map).join(", ")}`);
103
103
  }
104
104
  const mergeInput = { ...this.modelOptions, ...input.modelOptions, ...input };
105
- const image = await Promise.all(flat(input.image).map((image) => this.transformFileType("file", image, options).then((file) => `data:${file.mimeType || "image/png"};base64,${file.data}`)));
105
+ const image = await Promise.all(flat(input.image).map((image) => this.transformFileType("file", image).then((file) => `data:${file.mimeType || "image/png"};base64,${file.data}`)));
106
106
  const body = {
107
107
  ...snakelize(pick(mergeInput, map[key])),
108
108
  model,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/doubao",
3
- "version": "1.3.0-beta.8",
3
+ "version": "1.3.0",
4
4
  "description": "AIGNE doubao SDK for integrating with doubao AI models",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "ufo": "^1.6.1",
39
39
  "zod": "^3.25.67",
40
- "@aigne/openai": "^0.16.16-beta.9"
40
+ "@aigne/openai": "^0.16.16"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/bun": "^1.2.22",
@@ -47,8 +47,8 @@
47
47
  "npm-run-all": "^4.1.5",
48
48
  "rimraf": "^6.0.1",
49
49
  "typescript": "^5.9.2",
50
- "@aigne/core": "^1.72.0-beta.9",
51
- "@aigne/test-utils": "^0.5.69-beta.9"
50
+ "@aigne/core": "^1.72.0",
51
+ "@aigne/test-utils": "^0.5.69"
52
52
  },
53
53
  "scripts": {
54
54
  "lint": "tsc --noEmit",