@aigne/openai 0.16.12 → 0.16.13-beta
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 +16 -0
- package/lib/cjs/openai-chat-model.js +2 -2
- package/lib/esm/openai-chat-model.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.16.13-beta](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.12...openai-v0.16.13-beta) (2025-12-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **core:** add nested getter pattern support for model options ([#796](https://github.com/AIGNE-io/aigne-framework/issues/796)) ([824b2fe](https://github.com/AIGNE-io/aigne-framework/commit/824b2fe55cb2a24620e2bb73b470532918fa2996))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/core bumped to 1.70.0-beta
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @aigne/test-utils bumped to 0.5.66-beta
|
|
18
|
+
|
|
3
19
|
## [0.16.12](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.16.12-beta.1...openai-v0.16.12) (2025-11-28)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -116,8 +116,8 @@ class OpenAIChatModel extends core_1.ChatModel {
|
|
|
116
116
|
}
|
|
117
117
|
return effort;
|
|
118
118
|
}
|
|
119
|
-
async _process(input,
|
|
120
|
-
const modelOptions =
|
|
119
|
+
async _process(input, _options) {
|
|
120
|
+
const { modelOptions = {} } = input;
|
|
121
121
|
const messages = await this.getRunMessages(input);
|
|
122
122
|
const model = modelOptions?.model || this.credential.model;
|
|
123
123
|
const body = {
|
|
@@ -111,8 +111,8 @@ export class OpenAIChatModel extends ChatModel {
|
|
|
111
111
|
}
|
|
112
112
|
return effort;
|
|
113
113
|
}
|
|
114
|
-
async _process(input,
|
|
115
|
-
const modelOptions =
|
|
114
|
+
async _process(input, _options) {
|
|
115
|
+
const { modelOptions = {} } = input;
|
|
116
116
|
const messages = await this.getRunMessages(input);
|
|
117
117
|
const model = modelOptions?.model || this.credential.model;
|
|
118
118
|
const body = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/openai",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.13-beta",
|
|
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.
|
|
41
|
+
"@aigne/core": "^1.70.0-beta",
|
|
42
42
|
"@aigne/platform-helpers": "^0.6.5"
|
|
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.
|
|
50
|
+
"@aigne/test-utils": "^0.5.66-beta"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"lint": "tsc --noEmit",
|