@aigne/openai 0.16.2-beta.1 → 0.16.2-beta.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,109 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.16.2-beta.10](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.9...openai-v0.16.2-beta.10) (2025-10-16)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/core bumped to 1.63.0-beta.10
11
+ * devDependencies
12
+ * @aigne/test-utils bumped to 0.5.55-beta.10
13
+
14
+ ## [0.16.2-beta.9](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.8...openai-v0.16.2-beta.9) (2025-10-16)
15
+
16
+
17
+ ### Dependencies
18
+
19
+ * The following workspace dependencies were updated
20
+ * dependencies
21
+ * @aigne/core bumped to 1.63.0-beta.9
22
+ * devDependencies
23
+ * @aigne/test-utils bumped to 0.5.55-beta.9
24
+
25
+ ## [0.16.2-beta.8](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.7...openai-v0.16.2-beta.8) (2025-10-16)
26
+
27
+
28
+ ### Dependencies
29
+
30
+ * The following workspace dependencies were updated
31
+ * dependencies
32
+ * @aigne/core bumped to 1.63.0-beta.8
33
+ * devDependencies
34
+ * @aigne/test-utils bumped to 0.5.55-beta.8
35
+
36
+ ## [0.16.2-beta.7](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.6...openai-v0.16.2-beta.7) (2025-10-15)
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @aigne/core bumped to 1.63.0-beta.7
44
+ * devDependencies
45
+ * @aigne/test-utils bumped to 0.5.55-beta.7
46
+
47
+ ## [0.16.2-beta.6](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.5...openai-v0.16.2-beta.6) (2025-10-15)
48
+
49
+
50
+ ### Dependencies
51
+
52
+ * The following workspace dependencies were updated
53
+ * dependencies
54
+ * @aigne/core bumped to 1.63.0-beta.6
55
+ * devDependencies
56
+ * @aigne/test-utils bumped to 0.5.55-beta.6
57
+
58
+ ## [0.16.2-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.4...openai-v0.16.2-beta.5) (2025-10-13)
59
+
60
+
61
+ ### Dependencies
62
+
63
+ * The following workspace dependencies were updated
64
+ * dependencies
65
+ * @aigne/core bumped to 1.63.0-beta.5
66
+ * devDependencies
67
+ * @aigne/test-utils bumped to 0.5.55-beta.5
68
+
69
+ ## [0.16.2-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.3...openai-v0.16.2-beta.4) (2025-10-12)
70
+
71
+
72
+ ### Dependencies
73
+
74
+ * The following workspace dependencies were updated
75
+ * dependencies
76
+ * @aigne/core bumped to 1.63.0-beta.4
77
+ * devDependencies
78
+ * @aigne/test-utils bumped to 0.5.55-beta.4
79
+
80
+ ## [0.16.2-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.2...openai-v0.16.2-beta.3) (2025-10-11)
81
+
82
+
83
+ ### Dependencies
84
+
85
+ * The following workspace dependencies were updated
86
+ * dependencies
87
+ * @aigne/core bumped to 1.63.0-beta.3
88
+ * devDependencies
89
+ * @aigne/test-utils bumped to 0.5.55-beta.3
90
+
91
+ ## [0.16.2-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta.1...openai-v0.16.2-beta.2) (2025-10-09)
92
+
93
+
94
+ ### Bug Fixes
95
+
96
+ * input schema of AI agent should includes input key and input file key ([#600](https://github.com/AIGNE-io/aigne-framework/issues/600)) ([b4ca076](https://github.com/AIGNE-io/aigne-framework/commit/b4ca076d6b4a1a1ecb8d4ebb008abd0d7561aadd))
97
+
98
+
99
+ ### Dependencies
100
+
101
+ * The following workspace dependencies were updated
102
+ * dependencies
103
+ * @aigne/core bumped to 1.63.0-beta.2
104
+ * devDependencies
105
+ * @aigne/test-utils bumped to 0.5.55-beta.2
106
+
3
107
  ## [0.16.2-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.2-beta...openai-v0.16.2-beta.1) (2025-10-09)
4
108
 
5
109
 
@@ -367,8 +367,10 @@ async function contentsFromInputMessages(messages) {
367
367
  return { type: "image_url", image_url: { url: c.url } };
368
368
  case "file":
369
369
  return {
370
- type: "file",
371
- file: { file_data: c.data, filename: c.filename },
370
+ type: "image_url",
371
+ image_url: {
372
+ url: `data:${c.mimeType || "image/png"};base64,${c.data}`,
373
+ },
372
374
  };
373
375
  case "local": {
374
376
  throw new Error(`Unsupported local file: ${c.path}, it should be converted to base64 at ChatModel`);
@@ -361,8 +361,10 @@ export async function contentsFromInputMessages(messages) {
361
361
  return { type: "image_url", image_url: { url: c.url } };
362
362
  case "file":
363
363
  return {
364
- type: "file",
365
- file: { file_data: c.data, filename: c.filename },
364
+ type: "image_url",
365
+ image_url: {
366
+ url: `data:${c.mimeType || "image/png"};base64,${c.data}`,
367
+ },
366
368
  };
367
369
  case "local": {
368
370
  throw new Error(`Unsupported local file: ${c.path}, it should be converted to base64 at ChatModel`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/openai",
3
- "version": "0.16.2-beta.1",
3
+ "version": "0.16.2-beta.10",
4
4
  "description": "AIGNE OpenAI SDK for integrating with OpenAI's GPT models and API services",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -38,7 +38,7 @@
38
38
  "@aigne/uuid": "^13.0.1",
39
39
  "openai": "^5.20.3",
40
40
  "zod": "^3.25.67",
41
- "@aigne/core": "^1.63.0-beta.1",
41
+ "@aigne/core": "^1.63.0-beta.10",
42
42
  "@aigne/platform-helpers": "^0.6.3"
43
43
  },
44
44
  "devDependencies": {
@@ -47,7 +47,7 @@
47
47
  "npm-run-all": "^4.1.5",
48
48
  "rimraf": "^6.0.1",
49
49
  "typescript": "^5.9.2",
50
- "@aigne/test-utils": "^0.5.55-beta.1"
50
+ "@aigne/test-utils": "^0.5.55-beta.10"
51
51
  },
52
52
  "scripts": {
53
53
  "lint": "tsc --noEmit",