doomiaichat 7.1.9 → 7.1.10
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/dist/corzbot.js +4 -2
- package/package.json +1 -1
- package/src/corzbot.ts +5 -3
package/dist/corzbot.js
CHANGED
|
@@ -115,7 +115,7 @@ class CorzBot extends gptbase_1.default {
|
|
|
115
115
|
* @param _axiosOption
|
|
116
116
|
*/
|
|
117
117
|
getRequestStream(client, message, callChatOption = {}) {
|
|
118
|
-
var _a;
|
|
118
|
+
var _a, _b;
|
|
119
119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
120
|
//简单的对话请求
|
|
121
121
|
const conversation_id = (_a = callChatOption.session_id) !== null && _a !== void 0 ? _a : yield this.createCoversation(client);
|
|
@@ -135,7 +135,9 @@ class CorzBot extends gptbase_1.default {
|
|
|
135
135
|
ext: callChatOption.ext,
|
|
136
136
|
workflow_id: this.workflowid,
|
|
137
137
|
conversation_id,
|
|
138
|
-
|
|
138
|
+
is_async: false,
|
|
139
|
+
parameters: Object.assign({ input: (_b = message[0]) === null || _b === void 0 ? void 0 : _b.content }, this.setting.customVariables || {}, callChatOption.customVariables || {}),
|
|
140
|
+
//parameters: { input: message[0]?.content }
|
|
139
141
|
};
|
|
140
142
|
return worflowreq;
|
|
141
143
|
});
|
package/package.json
CHANGED
package/src/corzbot.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
RoleType,
|
|
9
9
|
StreamChatReq,
|
|
10
10
|
EnterMessage,
|
|
11
|
-
ChatWorkflowReq,
|
|
11
|
+
// ChatWorkflowReq,
|
|
12
12
|
// CreateChatReq,
|
|
13
13
|
// ChatStatus,
|
|
14
14
|
VariableUpdateReq,
|
|
@@ -117,13 +117,15 @@ export default class CorzBot extends GptBase {
|
|
|
117
117
|
req.custom_variables = Object.assign({}, this.setting.customVariables || {}, callChatOption.customVariables || {});
|
|
118
118
|
return req as T;
|
|
119
119
|
}
|
|
120
|
-
const worflowreq:
|
|
120
|
+
const worflowreq: any = {
|
|
121
121
|
bot_id: this.botid,
|
|
122
122
|
additional_messages: message,
|
|
123
123
|
ext: callChatOption.ext,
|
|
124
124
|
workflow_id: this.workflowid,//callChatOption.workflowid,
|
|
125
125
|
conversation_id,
|
|
126
|
-
|
|
126
|
+
is_async:false,
|
|
127
|
+
parameters: Object.assign({ input: message[0]?.content }, this.setting.customVariables || {}, callChatOption.customVariables || {}),
|
|
128
|
+
//parameters: { input: message[0]?.content }
|
|
127
129
|
}
|
|
128
130
|
return worflowreq as T;
|
|
129
131
|
}
|