@aigne/ideogram 0.4.0-beta → 0.4.0-beta.2
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,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.0-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/ideogram-v0.4.0-beta.1...ideogram-v0.4.0-beta.2) (2025-09-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/core bumped to 1.61.0-beta.2
|
|
16
|
+
|
|
17
|
+
## [0.4.0-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/ideogram-v0.4.0-beta...ideogram-v0.4.0-beta.1) (2025-09-23)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 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))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @aigne/core bumped to 1.61.0-beta.1
|
|
30
|
+
|
|
3
31
|
## [0.4.0-beta](https://github.com/AIGNE-io/aigne-framework/compare/ideogram-v0.3.15...ideogram-v0.4.0-beta) (2025-09-22)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -61,7 +61,7 @@ class IdeogramImageModel extends core_1.ImageModel {
|
|
|
61
61
|
"styleCodes",
|
|
62
62
|
"styleType",
|
|
63
63
|
];
|
|
64
|
-
const mergedInput = (0, camelize_js_1.snakelize)((0, type_utils_js_1.pick)({ ...this.modelOptions, ...input }, inputKeys));
|
|
64
|
+
const mergedInput = (0, camelize_js_1.snakelize)((0, type_utils_js_1.pick)({ ...this.modelOptions, ...input.modelOptions, ...input }, inputKeys));
|
|
65
65
|
Object.keys(mergedInput).forEach((key) => {
|
|
66
66
|
if (mergedInput[key]) {
|
|
67
67
|
formData.append(key, mergedInput[key]);
|
|
@@ -76,7 +76,7 @@ class IdeogramImageModel extends core_1.ImageModel {
|
|
|
76
76
|
if (inputImages.length > 1) {
|
|
77
77
|
throw new Error(`${this.name} only support one image for editing`);
|
|
78
78
|
}
|
|
79
|
-
const { data } = await this.
|
|
79
|
+
const { data } = await this.transformFileType("file", image, options);
|
|
80
80
|
formData.append("image", new Blob([Buffer.from(data, "base64")]));
|
|
81
81
|
}
|
|
82
82
|
const { url, apiKey } = this.credential;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageModel, imageModelInputSchema, } from "@aigne/core";
|
|
2
2
|
import { snakelize } from "@aigne/core/utils/camelize.js";
|
|
3
3
|
import { checkArguments, flat, pick } from "@aigne/core/utils/type-utils.js";
|
|
4
4
|
import { joinURL } from "ufo";
|
|
@@ -58,7 +58,7 @@ export class IdeogramImageModel extends ImageModel {
|
|
|
58
58
|
"styleCodes",
|
|
59
59
|
"styleType",
|
|
60
60
|
];
|
|
61
|
-
const mergedInput = snakelize(pick({ ...this.modelOptions, ...input }, inputKeys));
|
|
61
|
+
const mergedInput = snakelize(pick({ ...this.modelOptions, ...input.modelOptions, ...input }, inputKeys));
|
|
62
62
|
Object.keys(mergedInput).forEach((key) => {
|
|
63
63
|
if (mergedInput[key]) {
|
|
64
64
|
formData.append(key, mergedInput[key]);
|
|
@@ -73,7 +73,7 @@ export class IdeogramImageModel extends ImageModel {
|
|
|
73
73
|
if (inputImages.length > 1) {
|
|
74
74
|
throw new Error(`${this.name} only support one image for editing`);
|
|
75
75
|
}
|
|
76
|
-
const { data } = await this.
|
|
76
|
+
const { data } = await this.transformFileType("file", image, options);
|
|
77
77
|
formData.append("image", new Blob([Buffer.from(data, "base64")]));
|
|
78
78
|
}
|
|
79
79
|
const { url, apiKey } = this.credential;
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"ufo": "^1.6.1",
|
|
38
|
-
"@aigne/core": "1.61.0-beta"
|
|
38
|
+
"@aigne/core": "1.61.0-beta.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/bun": "^1.2.22",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^5.9.2",
|
|
48
48
|
"zod": "3.25.67"
|
|
49
49
|
},
|
|
50
|
-
"version": "0.4.0-beta",
|
|
50
|
+
"version": "0.4.0-beta.2",
|
|
51
51
|
"scripts": {
|
|
52
52
|
"lint": "tsc --noEmit",
|
|
53
53
|
"build": "tsc --build scripts/tsconfig.build.json",
|