@aigne/openai 0.16.2-beta → 0.16.2-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,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 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))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/core bumped to 1.63.0-beta.2
16
+ * devDependencies
17
+ * @aigne/test-utils bumped to 0.5.55-beta.2
18
+
19
+ ## [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)
20
+
21
+
22
+ ### Dependencies
23
+
24
+ * The following workspace dependencies were updated
25
+ * dependencies
26
+ * @aigne/core bumped to 1.63.0-beta.1
27
+ * devDependencies
28
+ * @aigne/test-utils bumped to 0.5.55-beta.1
29
+
3
30
  ## [0.16.2-beta](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.1...openai-v0.16.2-beta) (2025-10-07)
4
31
 
5
32
 
@@ -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",
3
+ "version": "0.16.2-beta.2",
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",
41
+ "@aigne/core": "^1.63.0-beta.2",
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"
50
+ "@aigne/test-utils": "^0.5.55-beta.2"
51
51
  },
52
52
  "scripts": {
53
53
  "lint": "tsc --noEmit",