@aigne/openai 1.74.0-beta.10 → 1.74.0-beta.11
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.
|
@@ -49,46 +49,8 @@ declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
49
49
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
parallelToolCalls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
model?: string | undefined;
|
|
55
|
-
temperature?: number | undefined;
|
|
56
|
-
topP?: number | undefined;
|
|
57
|
-
frequencyPenalty?: number | undefined;
|
|
58
|
-
presencePenalty?: number | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
model?: string | undefined;
|
|
61
|
-
temperature?: number | undefined;
|
|
62
|
-
topP?: number | undefined;
|
|
63
|
-
frequencyPenalty?: number | undefined;
|
|
64
|
-
presencePenalty?: number | undefined;
|
|
65
|
-
parallelToolCalls?: boolean | undefined;
|
|
66
|
-
}>>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
baseURL?: string | undefined;
|
|
69
|
-
apiKey?: string | undefined;
|
|
70
|
-
model?: string | undefined;
|
|
71
|
-
modelOptions?: {
|
|
72
|
-
parallelToolCalls: boolean;
|
|
73
|
-
model?: string | undefined;
|
|
74
|
-
temperature?: number | undefined;
|
|
75
|
-
topP?: number | undefined;
|
|
76
|
-
frequencyPenalty?: number | undefined;
|
|
77
|
-
presencePenalty?: number | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
baseURL?: string | undefined;
|
|
81
|
-
apiKey?: string | undefined;
|
|
82
|
-
model?: string | undefined;
|
|
83
|
-
modelOptions?: {
|
|
84
|
-
model?: string | undefined;
|
|
85
|
-
temperature?: number | undefined;
|
|
86
|
-
topP?: number | undefined;
|
|
87
|
-
frequencyPenalty?: number | undefined;
|
|
88
|
-
presencePenalty?: number | undefined;
|
|
89
|
-
parallelToolCalls?: boolean | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
}>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
92
54
|
/**
|
|
93
55
|
* Implementation of the ChatModel interface for OpenAI's API
|
|
94
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-chat-model.d.cts","names":[],"sources":["../src/openai-chat-model.ts"],"mappings":";;;;;;;UAwCiB,2BAAA;EACf,+BAAA;EACA,4BAAA;EACA,8BAAA;EACA,yBAAA;EACA,4BAAA;EACA,qBAAA;EACA,mBAAA;AAAA;;;;UAWe,sBAAA,SAA+B,gBAAA;EAX3B;;AAWrB;;;EAME,MAAA;EAYgB;;;;;EALhB,OAAA;EAAA;;;EAKA,aAAA,GAAgB,OAAA,CAAQ,aAAA;AAAA;;AAM1B;;cAAa,4BAAA,EAA4B,CAAA,CAAA,SAAA
|
|
1
|
+
{"version":3,"file":"openai-chat-model.d.cts","names":[],"sources":["../src/openai-chat-model.ts"],"mappings":";;;;;;;UAwCiB,2BAAA;EACf,+BAAA;EACA,4BAAA;EACA,8BAAA;EACA,yBAAA;EACA,4BAAA;EACA,qBAAA;EACA,mBAAA;AAAA;;;;UAWe,sBAAA,SAA+B,gBAAA;EAX3B;;AAWrB;;;EAME,MAAA;EAYgB;;;;;EALhB,OAAA;EAAA;;;EAKA,aAAA,GAAgB,OAAA,CAAQ,aAAA;AAAA;;AAM1B;;cAAa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmC5B,eAAA,SAAwB,SAAA;EACP,OAAA,GAAU,sBAAA;cAAV,OAAA,GAAU,sBAAA;;;;YAW5B,OAAA,GAAU,QAAA;EAAA,UAEV,aAAA;EAAA,UACA,aAAA;EAAA,UACA,+BAAA;EAAA,UACA,8BAAA;EAAA,UACS,yBAAA;EAAA,UACT,4BAAA;EAAA,UACA,qBAAA;EAAA,UACA,mBAAA;EAAA,IAEN,MAAA,CAAA,GAAM,QAAA;EAAA,IAeG,UAAA,CAAA;;;;;;;;;;EAaJ,OAAA,CACP,KAAA,EAAO,cAAA,EACP,OAAA,EAAS,kBAAA,GACR,cAAA,CAAe,kBAAA,CAAmB,eAAA;EAAA,QAI7B,kBAAA;EAAA,QAcM,QAAA;EAAA,QAuEN,oBAAA;EAAA,UASQ,cAAA,CAAe,KAAA,EAAO,cAAA,GAAiB,OAAA,CAAQ,0BAAA;EAAA,QAiBjD,oBAAA;EAAA,QA+BA,uBAAA;EAAA,QAmBA,uBAAA;;;;;;YAoJJ,iBAAA;EAAA,UAEA,4BAAA,CAA6B,MAAA,EAAQ,MAAA,oBAA0B,MAAA;AAAA;;;;iBA+CrD,yBAAA,CACpB,QAAA,EAAU,qBAAA,KACT,OAAA,CAAQ,0BAAA;;;;iBAmDK,mBAAA,CACd,KAAA,GAAQ,kBAAA,IACR,OAAA;EAAY,wBAAA;AAAA,IACX,kBAAA"}
|
|
@@ -49,46 +49,8 @@ declare const openAIChatModelOptionsSchema: z.ZodObject<{
|
|
|
49
49
|
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
parallelToolCalls: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
model?: string | undefined;
|
|
55
|
-
temperature?: number | undefined;
|
|
56
|
-
topP?: number | undefined;
|
|
57
|
-
frequencyPenalty?: number | undefined;
|
|
58
|
-
presencePenalty?: number | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
model?: string | undefined;
|
|
61
|
-
temperature?: number | undefined;
|
|
62
|
-
topP?: number | undefined;
|
|
63
|
-
frequencyPenalty?: number | undefined;
|
|
64
|
-
presencePenalty?: number | undefined;
|
|
65
|
-
parallelToolCalls?: boolean | undefined;
|
|
66
|
-
}>>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
baseURL?: string | undefined;
|
|
69
|
-
apiKey?: string | undefined;
|
|
70
|
-
model?: string | undefined;
|
|
71
|
-
modelOptions?: {
|
|
72
|
-
parallelToolCalls: boolean;
|
|
73
|
-
model?: string | undefined;
|
|
74
|
-
temperature?: number | undefined;
|
|
75
|
-
topP?: number | undefined;
|
|
76
|
-
frequencyPenalty?: number | undefined;
|
|
77
|
-
presencePenalty?: number | undefined;
|
|
78
|
-
} | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
baseURL?: string | undefined;
|
|
81
|
-
apiKey?: string | undefined;
|
|
82
|
-
model?: string | undefined;
|
|
83
|
-
modelOptions?: {
|
|
84
|
-
model?: string | undefined;
|
|
85
|
-
temperature?: number | undefined;
|
|
86
|
-
topP?: number | undefined;
|
|
87
|
-
frequencyPenalty?: number | undefined;
|
|
88
|
-
presencePenalty?: number | undefined;
|
|
89
|
-
parallelToolCalls?: boolean | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
}>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
92
54
|
/**
|
|
93
55
|
* Implementation of the ChatModel interface for OpenAI's API
|
|
94
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai-chat-model.d.mts","names":[],"sources":["../src/openai-chat-model.ts"],"mappings":";;;;;;;UAwCiB,2BAAA;EACf,+BAAA;EACA,4BAAA;EACA,8BAAA;EACA,yBAAA;EACA,4BAAA;EACA,qBAAA;EACA,mBAAA;AAAA;;;;UAWe,sBAAA,SAA+B,gBAAA;EAX3B;;AAWrB;;;EAME,MAAA;EAYgB;;;;;EALhB,OAAA;EAAA;;;EAKA,aAAA,GAAgB,OAAA,CAAQ,aAAA;AAAA;;AAM1B;;cAAa,4BAAA,EAA4B,CAAA,CAAA,SAAA
|
|
1
|
+
{"version":3,"file":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ACX,kBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/openai",
|
|
3
|
-
"version": "1.74.0-beta.
|
|
3
|
+
"version": "1.74.0-beta.11",
|
|
4
4
|
"description": "AIGNE OpenAI SDK for integrating with OpenAI's GPT models and API services",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@aigne/uuid": "^13.0.1",
|
|
37
37
|
"openai": "^6.14.0",
|
|
38
|
-
"zod": "^3.
|
|
39
|
-
"@aigne/model-base": "^1.74.0-beta.
|
|
38
|
+
"zod": "^4.3.6",
|
|
39
|
+
"@aigne/model-base": "^1.74.0-beta.11"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/bun": "^1.3.6",
|