@aigne/openai 0.14.3 → 0.15.1
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.15.1](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.15.0...openai-v0.15.1) (2025-09-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/core bumped to 1.60.0
|
|
11
|
+
* devDependencies
|
|
12
|
+
* @aigne/test-utils bumped to 0.5.49
|
|
13
|
+
|
|
14
|
+
## [0.15.0](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.14.3...openai-v0.15.0) (2025-09-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* support custom prefer input file type ([#469](https://github.com/AIGNE-io/aigne-framework/issues/469)) ([db0161b](https://github.com/AIGNE-io/aigne-framework/commit/db0161bbac52542c771ee2f40f361636b0668075))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Dependencies
|
|
23
|
+
|
|
24
|
+
* The following workspace dependencies were updated
|
|
25
|
+
* dependencies
|
|
26
|
+
* @aigne/core bumped to 1.59.0
|
|
27
|
+
* devDependencies
|
|
28
|
+
* @aigne/test-utils bumped to 0.5.48
|
|
29
|
+
|
|
3
30
|
## [0.14.3](https://github.com/AIGNE-io/aigne-framework/compare/openai-v0.14.2...openai-v0.14.3) (2025-09-08)
|
|
4
31
|
|
|
5
32
|
|
|
@@ -15,7 +15,7 @@ export interface OpenAIChatModelCapabilities {
|
|
|
15
15
|
/**
|
|
16
16
|
* Configuration options for OpenAI Chat Model
|
|
17
17
|
*/
|
|
18
|
-
export interface OpenAIChatModelOptions {
|
|
18
|
+
export interface OpenAIChatModelOptions extends ChatModelOptions {
|
|
19
19
|
/**
|
|
20
20
|
* API key for OpenAI API
|
|
21
21
|
*
|
|
@@ -28,16 +28,6 @@ export interface OpenAIChatModelOptions {
|
|
|
28
28
|
* Useful for proxies or alternate endpoints
|
|
29
29
|
*/
|
|
30
30
|
baseURL?: string;
|
|
31
|
-
/**
|
|
32
|
-
* OpenAI model to use
|
|
33
|
-
*
|
|
34
|
-
* Defaults to 'gpt-4o-mini'
|
|
35
|
-
*/
|
|
36
|
-
model?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Additional model options to control behavior
|
|
39
|
-
*/
|
|
40
|
-
modelOptions?: ChatModelOptions;
|
|
41
31
|
/**
|
|
42
32
|
* Client options for OpenAI API
|
|
43
33
|
*/
|
|
@@ -73,9 +63,9 @@ export declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
73
63
|
parallelToolCalls?: boolean | undefined;
|
|
74
64
|
}>>;
|
|
75
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
model?: string | undefined;
|
|
76
67
|
apiKey?: string | undefined;
|
|
77
68
|
baseURL?: string | undefined;
|
|
78
|
-
model?: string | undefined;
|
|
79
69
|
modelOptions?: {
|
|
80
70
|
parallelToolCalls: boolean;
|
|
81
71
|
model?: string | undefined;
|
|
@@ -85,9 +75,9 @@ export declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
85
75
|
presencePenalty?: number | undefined;
|
|
86
76
|
} | undefined;
|
|
87
77
|
}, {
|
|
78
|
+
model?: string | undefined;
|
|
88
79
|
apiKey?: string | undefined;
|
|
89
80
|
baseURL?: string | undefined;
|
|
90
|
-
model?: string | undefined;
|
|
91
81
|
modelOptions?: {
|
|
92
82
|
model?: string | undefined;
|
|
93
83
|
temperature?: number | undefined;
|
|
@@ -137,7 +127,7 @@ export declare class OpenAIChatModel extends ChatModel {
|
|
|
137
127
|
apiKey: string | undefined;
|
|
138
128
|
model: string;
|
|
139
129
|
};
|
|
140
|
-
get modelOptions():
|
|
130
|
+
get modelOptions(): Omit<import("@aigne/core").ModelOptions, "model"> | undefined;
|
|
141
131
|
/**
|
|
142
132
|
* Process the input and generate a response
|
|
143
133
|
* @param input The input to process
|
|
@@ -15,7 +15,7 @@ export interface OpenAIChatModelCapabilities {
|
|
|
15
15
|
/**
|
|
16
16
|
* Configuration options for OpenAI Chat Model
|
|
17
17
|
*/
|
|
18
|
-
export interface OpenAIChatModelOptions {
|
|
18
|
+
export interface OpenAIChatModelOptions extends ChatModelOptions {
|
|
19
19
|
/**
|
|
20
20
|
* API key for OpenAI API
|
|
21
21
|
*
|
|
@@ -28,16 +28,6 @@ export interface OpenAIChatModelOptions {
|
|
|
28
28
|
* Useful for proxies or alternate endpoints
|
|
29
29
|
*/
|
|
30
30
|
baseURL?: string;
|
|
31
|
-
/**
|
|
32
|
-
* OpenAI model to use
|
|
33
|
-
*
|
|
34
|
-
* Defaults to 'gpt-4o-mini'
|
|
35
|
-
*/
|
|
36
|
-
model?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Additional model options to control behavior
|
|
39
|
-
*/
|
|
40
|
-
modelOptions?: ChatModelOptions;
|
|
41
31
|
/**
|
|
42
32
|
* Client options for OpenAI API
|
|
43
33
|
*/
|
|
@@ -73,9 +63,9 @@ export declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
73
63
|
parallelToolCalls?: boolean | undefined;
|
|
74
64
|
}>>;
|
|
75
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
model?: string | undefined;
|
|
76
67
|
apiKey?: string | undefined;
|
|
77
68
|
baseURL?: string | undefined;
|
|
78
|
-
model?: string | undefined;
|
|
79
69
|
modelOptions?: {
|
|
80
70
|
parallelToolCalls: boolean;
|
|
81
71
|
model?: string | undefined;
|
|
@@ -85,9 +75,9 @@ export declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
85
75
|
presencePenalty?: number | undefined;
|
|
86
76
|
} | undefined;
|
|
87
77
|
}, {
|
|
78
|
+
model?: string | undefined;
|
|
88
79
|
apiKey?: string | undefined;
|
|
89
80
|
baseURL?: string | undefined;
|
|
90
|
-
model?: string | undefined;
|
|
91
81
|
modelOptions?: {
|
|
92
82
|
model?: string | undefined;
|
|
93
83
|
temperature?: number | undefined;
|
|
@@ -137,7 +127,7 @@ export declare class OpenAIChatModel extends ChatModel {
|
|
|
137
127
|
apiKey: string | undefined;
|
|
138
128
|
model: string;
|
|
139
129
|
};
|
|
140
|
-
get modelOptions():
|
|
130
|
+
get modelOptions(): Omit<import("@aigne/core").ModelOptions, "model"> | undefined;
|
|
141
131
|
/**
|
|
142
132
|
* Process the input and generate a response
|
|
143
133
|
* @param input The input to process
|
|
@@ -15,7 +15,7 @@ export interface OpenAIChatModelCapabilities {
|
|
|
15
15
|
/**
|
|
16
16
|
* Configuration options for OpenAI Chat Model
|
|
17
17
|
*/
|
|
18
|
-
export interface OpenAIChatModelOptions {
|
|
18
|
+
export interface OpenAIChatModelOptions extends ChatModelOptions {
|
|
19
19
|
/**
|
|
20
20
|
* API key for OpenAI API
|
|
21
21
|
*
|
|
@@ -28,16 +28,6 @@ export interface OpenAIChatModelOptions {
|
|
|
28
28
|
* Useful for proxies or alternate endpoints
|
|
29
29
|
*/
|
|
30
30
|
baseURL?: string;
|
|
31
|
-
/**
|
|
32
|
-
* OpenAI model to use
|
|
33
|
-
*
|
|
34
|
-
* Defaults to 'gpt-4o-mini'
|
|
35
|
-
*/
|
|
36
|
-
model?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Additional model options to control behavior
|
|
39
|
-
*/
|
|
40
|
-
modelOptions?: ChatModelOptions;
|
|
41
31
|
/**
|
|
42
32
|
* Client options for OpenAI API
|
|
43
33
|
*/
|
|
@@ -73,9 +63,9 @@ export declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
73
63
|
parallelToolCalls?: boolean | undefined;
|
|
74
64
|
}>>;
|
|
75
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
model?: string | undefined;
|
|
76
67
|
apiKey?: string | undefined;
|
|
77
68
|
baseURL?: string | undefined;
|
|
78
|
-
model?: string | undefined;
|
|
79
69
|
modelOptions?: {
|
|
80
70
|
parallelToolCalls: boolean;
|
|
81
71
|
model?: string | undefined;
|
|
@@ -85,9 +75,9 @@ export declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
85
75
|
presencePenalty?: number | undefined;
|
|
86
76
|
} | undefined;
|
|
87
77
|
}, {
|
|
78
|
+
model?: string | undefined;
|
|
88
79
|
apiKey?: string | undefined;
|
|
89
80
|
baseURL?: string | undefined;
|
|
90
|
-
model?: string | undefined;
|
|
91
81
|
modelOptions?: {
|
|
92
82
|
model?: string | undefined;
|
|
93
83
|
temperature?: number | undefined;
|
|
@@ -137,7 +127,7 @@ export declare class OpenAIChatModel extends ChatModel {
|
|
|
137
127
|
apiKey: string | undefined;
|
|
138
128
|
model: string;
|
|
139
129
|
};
|
|
140
|
-
get modelOptions():
|
|
130
|
+
get modelOptions(): Omit<import("@aigne/core").ModelOptions, "model"> | undefined;
|
|
141
131
|
/**
|
|
142
132
|
* Process the input and generate a response
|
|
143
133
|
* @param input The input to process
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/openai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "AIGNE OpenAI SDK for integrating with OpenAI's GPT models and API services",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"openai": "^5.8.3",
|
|
40
40
|
"uuid": "^11.1.0",
|
|
41
41
|
"zod": "^3.25.67",
|
|
42
|
-
"@aigne/core": "^1.
|
|
42
|
+
"@aigne/core": "^1.60.0",
|
|
43
43
|
"@aigne/platform-helpers": "^0.6.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"npm-run-all": "^4.1.5",
|
|
49
49
|
"rimraf": "^6.0.1",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
|
-
"@aigne/test-utils": "^0.5.
|
|
51
|
+
"@aigne/test-utils": "^0.5.49"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"lint": "tsc --noEmit",
|