@aigne/openai 0.16.4-beta.1 → 0.16.4-beta.3
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.16.4-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.4-beta.2...openai-v0.16.4-beta.3) (2025-10-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/core bumped to 1.65.0-beta.2
|
|
11
|
+
* devDependencies
|
|
12
|
+
* @aigne/test-utils bumped to 0.5.57-beta.3
|
|
13
|
+
|
|
14
|
+
## [0.16.4-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.4-beta.1...openai-v0.16.4-beta.2) (2025-10-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **models:** add mineType for transform file ([#667](https://github.com/AIGNE-io/aigne-framework/issues/667)) ([155a173](https://github.com/AIGNE-io/aigne-framework/commit/155a173e75aff1dbe870a1305455a4300942e07a))
|
|
20
|
+
* **models:** aigne hub video params ([#665](https://github.com/AIGNE-io/aigne-framework/issues/665)) ([d00f836](https://github.com/AIGNE-io/aigne-framework/commit/d00f8368422d8e3707b974e1aff06714731ebb28))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Dependencies
|
|
24
|
+
|
|
25
|
+
* The following workspace dependencies were updated
|
|
26
|
+
* dependencies
|
|
27
|
+
* @aigne/core bumped to 1.65.0-beta.1
|
|
28
|
+
* devDependencies
|
|
29
|
+
* @aigne/test-utils bumped to 0.5.57-beta.2
|
|
30
|
+
|
|
3
31
|
## [0.16.4-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.4-beta...openai-v0.16.4-beta.1) (2025-10-24)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -62,12 +62,10 @@ class OpenAIVideoModel extends core_1.VideoModel {
|
|
|
62
62
|
const content = await this.client.videos.downloadContent(videoId);
|
|
63
63
|
const arrayBuffer = await content.arrayBuffer();
|
|
64
64
|
const buffer = Buffer.from(arrayBuffer);
|
|
65
|
-
|
|
66
|
-
const dataUrl = `data:video/mp4;base64,${base64}`;
|
|
67
|
-
return dataUrl;
|
|
65
|
+
return buffer.toString("base64");
|
|
68
66
|
}
|
|
69
67
|
async process(input) {
|
|
70
|
-
const model = input.model ?? this.credential.model;
|
|
68
|
+
const model = input.model ?? input.modelOptions?.model ?? this.credential.model;
|
|
71
69
|
const createParams = {
|
|
72
70
|
model: model,
|
|
73
71
|
prompt: input.prompt,
|
|
@@ -101,6 +99,8 @@ class OpenAIVideoModel extends core_1.VideoModel {
|
|
|
101
99
|
{
|
|
102
100
|
type: "file",
|
|
103
101
|
data: await this.downloadToFile(video.id),
|
|
102
|
+
mimeType: "video/mp4",
|
|
103
|
+
filename: `${video.id}.mp4`,
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
106
|
usage: {
|
|
@@ -59,12 +59,10 @@ export class OpenAIVideoModel extends VideoModel {
|
|
|
59
59
|
const content = await this.client.videos.downloadContent(videoId);
|
|
60
60
|
const arrayBuffer = await content.arrayBuffer();
|
|
61
61
|
const buffer = Buffer.from(arrayBuffer);
|
|
62
|
-
|
|
63
|
-
const dataUrl = `data:video/mp4;base64,${base64}`;
|
|
64
|
-
return dataUrl;
|
|
62
|
+
return buffer.toString("base64");
|
|
65
63
|
}
|
|
66
64
|
async process(input) {
|
|
67
|
-
const model = input.model ?? this.credential.model;
|
|
65
|
+
const model = input.model ?? input.modelOptions?.model ?? this.credential.model;
|
|
68
66
|
const createParams = {
|
|
69
67
|
model: model,
|
|
70
68
|
prompt: input.prompt,
|
|
@@ -98,6 +96,8 @@ export class OpenAIVideoModel extends VideoModel {
|
|
|
98
96
|
{
|
|
99
97
|
type: "file",
|
|
100
98
|
data: await this.downloadToFile(video.id),
|
|
99
|
+
mimeType: "video/mp4",
|
|
100
|
+
filename: `${video.id}.mp4`,
|
|
101
101
|
},
|
|
102
102
|
],
|
|
103
103
|
usage: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/openai",
|
|
3
|
-
"version": "0.16.4-beta.
|
|
3
|
+
"version": "0.16.4-beta.3",
|
|
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": "^6.5.0",
|
|
40
40
|
"zod": "^3.25.67",
|
|
41
|
-
"@aigne/core": "^1.65.0-beta",
|
|
41
|
+
"@aigne/core": "^1.65.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.57-beta.
|
|
50
|
+
"@aigne/test-utils": "^0.5.57-beta.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"lint": "tsc --noEmit",
|