@chatluna/v1-shared-adapter 1.0.10 → 1.0.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.
- package/lib/index.cjs +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +2 -2
package/lib/index.cjs
CHANGED
|
@@ -340,7 +340,7 @@ function convertMessageToMessageChunk(message) {
|
|
|
340
340
|
const content = message.content ?? "";
|
|
341
341
|
const reasoningContent = message.reasoning_content ?? "";
|
|
342
342
|
const role = ((message.role?.length ?? 0) > 0 ? message.role : "assistant").toLowerCase();
|
|
343
|
-
|
|
343
|
+
const additionalKwargs = {};
|
|
344
344
|
if (reasoningContent.length > 0) {
|
|
345
345
|
additionalKwargs.reasoning_content = reasoningContent;
|
|
346
346
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -310,7 +310,7 @@ function convertMessageToMessageChunk(message) {
|
|
|
310
310
|
const content = message.content ?? "";
|
|
311
311
|
const reasoningContent = message.reasoning_content ?? "";
|
|
312
312
|
const role = ((message.role?.length ?? 0) > 0 ? message.role : "assistant").toLowerCase();
|
|
313
|
-
|
|
313
|
+
const additionalKwargs = {};
|
|
314
314
|
if (reasoningContent.length > 0) {
|
|
315
315
|
additionalKwargs.reasoning_content = reasoningContent;
|
|
316
316
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatluna/v1-shared-adapter",
|
|
3
3
|
"description": "chatluna shared adapter",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"koishi": "^4.18.7",
|
|
73
|
-
"koishi-plugin-chatluna": "^1.3.0-alpha.
|
|
73
|
+
"koishi-plugin-chatluna": "^1.3.0-alpha.45"
|
|
74
74
|
}
|
|
75
75
|
}
|