@aigne/doubao 1.3.0-beta.12 → 1.3.0-beta.14

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,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/openai bumped to 0.16.16-beta.15
11
+ * devDependencies
12
+ * @aigne/core bumped to 1.72.0-beta.15
13
+ * @aigne/test-utils bumped to 0.5.69-beta.15
14
+
15
+ ## [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)
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * The following workspace dependencies were updated
21
+ * dependencies
22
+ * @aigne/openai bumped to 0.16.16-beta.14
23
+ * devDependencies
24
+ * @aigne/core bumped to 1.72.0-beta.14
25
+ * @aigne/test-utils bumped to 0.5.69-beta.14
26
+
3
27
  ## [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)
4
28
 
5
29
 
@@ -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.12",
3
+ "version": "1.3.0-beta.14",
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.13"
40
+ "@aigne/openai": "^0.16.16-beta.15"
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.13",
51
- "@aigne/test-utils": "^0.5.69-beta.13"
50
+ "@aigne/core": "^1.72.0-beta.15",
51
+ "@aigne/test-utils": "^0.5.69-beta.15"
52
52
  },
53
53
  "scripts": {
54
54
  "lint": "tsc --noEmit",