mioku-service-ai 2.2.0 → 2.2.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/index.ts +6 -4
- package/package.json +4 -2
package/index.ts
CHANGED
|
@@ -221,8 +221,10 @@ class AIInstanceImpl implements AIInstance {
|
|
|
221
221
|
model: args.model,
|
|
222
222
|
messages: args.messages,
|
|
223
223
|
tools: args.tools,
|
|
224
|
-
|
|
225
|
-
...(args.max_tokens != null && {
|
|
224
|
+
temperature: args.temperature,
|
|
225
|
+
...(args.max_tokens != null && {
|
|
226
|
+
max_completion_tokens: args.max_tokens,
|
|
227
|
+
}),
|
|
226
228
|
});
|
|
227
229
|
|
|
228
230
|
const message = response.choices[0]?.message;
|
|
@@ -267,9 +269,9 @@ class AIInstanceImpl implements AIInstance {
|
|
|
267
269
|
model: args.model,
|
|
268
270
|
messages: args.messages,
|
|
269
271
|
tools: args.tools,
|
|
270
|
-
|
|
272
|
+
temperature: args.temperature,
|
|
271
273
|
stream: true,
|
|
272
|
-
...(args.max_tokens != null && {
|
|
274
|
+
...(args.max_tokens != null && { max_tokens: args.max_tokens }),
|
|
273
275
|
});
|
|
274
276
|
|
|
275
277
|
let content = "";
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mioku-service-ai",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "为插件提供完整的ai服务支持,包括ai实例管理,提示词管理,skills管理等",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"keywords": [
|
|
7
|
+
"keywords": [
|
|
8
|
+
"mioku"
|
|
9
|
+
],
|
|
8
10
|
"repository": {
|
|
9
11
|
"type": "git",
|
|
10
12
|
"url": "https://github.com/mioku-lab/mioku.git"
|