doomiaichat 7.1.19 → 7.1.20

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 CHANGED
@@ -215,7 +215,7 @@ class CorzBot extends gptbase_1.default {
215
215
  const response = this.botid ? yield client.chat.create(params) : yield client.workflows.runs.create(params);
216
216
  if (this.workflowid) {
217
217
  const workflowResp = response;
218
- if (workflowResp.msg === 'Success') {
218
+ if (workflowResp.msg === 'Success' || (!workflowResp.msg && workflowResp.data)) {
219
219
  const resp = workflowResp.data;
220
220
  return { successed: true, message: [{ role: 'assistant', type: 'answer', content: resp }] };
221
221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doomiaichat",
3
- "version": "7.1.19",
3
+ "version": "7.1.20",
4
4
  "description": "Doomisoft OpenAI",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/corzbot.ts CHANGED
@@ -197,7 +197,7 @@ export default class CorzBot extends GptBase {
197
197
  const response = this.botid ? await client.chat.create(params as CreateChatReq) : await client.workflows.runs.create(params as RunWorkflowReq);
198
198
  if (this.workflowid) {
199
199
  const workflowResp = response as RunWorkflowData;
200
- if (workflowResp.msg === 'Success'){
200
+ if (workflowResp.msg === 'Success' || (!workflowResp.msg && workflowResp.data)){
201
201
  const resp = workflowResp.data;
202
202
  return { successed: true, message: [{ role: 'assistant', type: 'answer', content: resp }] };
203
203
  }else{