koishi-plugin-chatluna 1.4.1 → 1.4.2
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 +1 -1
package/lib/index.cjs
CHANGED
|
@@ -2978,7 +2978,7 @@ __name(apply12, "apply");
|
|
|
2978
2978
|
|
|
2979
2979
|
// src/middlewares/chat/censor.ts
|
|
2980
2980
|
var import_koishi6 = require("koishi");
|
|
2981
|
-
var import_langchain2 = require("
|
|
2981
|
+
var import_langchain2 = require("koishi-plugin-chatluna/utils/langchain");
|
|
2982
2982
|
function apply13(ctx, config, chain) {
|
|
2983
2983
|
chain.middleware("censor", async (session, context) => {
|
|
2984
2984
|
const message = context.options.responseMessage;
|
package/lib/index.mjs
CHANGED
|
@@ -2985,7 +2985,7 @@ __name(apply12, "apply");
|
|
|
2985
2985
|
|
|
2986
2986
|
// src/middlewares/chat/censor.ts
|
|
2987
2987
|
import { h as h4 } from "koishi";
|
|
2988
|
-
import { isMessageContentText as isMessageContentText2 } from "
|
|
2988
|
+
import { isMessageContentText as isMessageContentText2 } from "koishi-plugin-chatluna/utils/langchain";
|
|
2989
2989
|
function apply13(ctx, config, chain) {
|
|
2990
2990
|
chain.middleware("censor", async (session, context) => {
|
|
2991
2991
|
const message = context.options.responseMessage;
|