doomiaichat 7.1.24 → 7.1.25
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 -0
- package/package.json +1 -1
- package/src/corzbot.ts +2 -0
package/dist/corzbot.js
CHANGED
|
@@ -157,6 +157,8 @@ class CorzBot extends gptbase_1.default {
|
|
|
157
157
|
// parameters: Object.assign({ input: message[0]?.content }, this.setting.customVariables || {}, callChatOption.customVariables || {}),
|
|
158
158
|
parameters: Object.assign({ request_src: 1 }, callChatOption.parameters || {}, { input: (_b = message[0]) === null || _b === void 0 ? void 0 : _b.content })
|
|
159
159
|
};
|
|
160
|
+
if (callChatOption.userid || callChatOption.cozeUserID)
|
|
161
|
+
worflowreq.ext = Object.assign({}, worflowreq.ext || {}, { user_id: callChatOption.userid || callChatOption.cozeUserID });
|
|
160
162
|
return worflowreq;
|
|
161
163
|
}
|
|
162
164
|
const worflowreq = {
|
|
@@ -167,6 +169,8 @@ class CorzBot extends gptbase_1.default {
|
|
|
167
169
|
parameters: Object.assign({ request_src: 1 }, callChatOption.parameters || {}) //Object.assign({}, this.setting.customVariables || {}, callChatOption.customVariables || {}),
|
|
168
170
|
//parameters: { input: message[0]?.content }
|
|
169
171
|
};
|
|
172
|
+
if (callChatOption.userid || callChatOption.cozeUserID)
|
|
173
|
+
worflowreq.ext = Object.assign({}, worflowreq.ext || {}, { user_id: callChatOption.userid || callChatOption.cozeUserID });
|
|
170
174
|
return worflowreq;
|
|
171
175
|
});
|
|
172
176
|
}
|
package/package.json
CHANGED
package/src/corzbot.ts
CHANGED
|
@@ -145,6 +145,7 @@ export default class CorzBot extends GptBase {
|
|
|
145
145
|
// parameters: Object.assign({ input: message[0]?.content }, this.setting.customVariables || {}, callChatOption.customVariables || {}),
|
|
146
146
|
parameters: Object.assign({ request_src: 1 }, callChatOption.parameters || {}, { input: message[0]?.content })
|
|
147
147
|
}
|
|
148
|
+
if (callChatOption.userid || callChatOption.cozeUserID) worflowreq.ext = Object.assign({}, worflowreq.ext || {}, { user_id: callChatOption.userid || callChatOption.cozeUserID });
|
|
148
149
|
return worflowreq as T;
|
|
149
150
|
}
|
|
150
151
|
const worflowreq: ChatWorkflowReq = {
|
|
@@ -155,6 +156,7 @@ export default class CorzBot extends GptBase {
|
|
|
155
156
|
parameters: Object.assign({ request_src: 1 }, callChatOption.parameters || {}) //Object.assign({}, this.setting.customVariables || {}, callChatOption.customVariables || {}),
|
|
156
157
|
//parameters: { input: message[0]?.content }
|
|
157
158
|
}
|
|
159
|
+
if (callChatOption.userid || callChatOption.cozeUserID) worflowreq.ext = Object.assign({}, worflowreq.ext||{}, { user_id: callChatOption.userid || callChatOption.cozeUserID });
|
|
158
160
|
return worflowreq as T;
|
|
159
161
|
}
|
|
160
162
|
/**
|