doomiaichat 7.1.15 → 7.1.16

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
@@ -366,7 +366,7 @@ class CorzBot extends gptbase_1.default {
366
366
  const spiltPreresponse = result.thinking.text.slice(preresponseText.length);
367
367
  preresponseText = result.thinking.text;
368
368
  fullanswer.push(spiltPreresponse); // = [result.thinking.text];// .push(result.thinking.text);
369
- let output = { successed: true, type, content_type, role, requestid, segment: spiltPreresponse, text: fullanswer.join(''), index: index++, session_id: conversation_id };
369
+ let output = { successed: true, type, content_type, role, requestid, segment: spiltPreresponse, text: fullanswer.join(''), index: index++, session_id: conversation_id, preresponse: true, preresponseover: result.thinking.completed };
370
370
  if (attach)
371
371
  output = Object.assign({}, output, attach);
372
372
  this.emit('chattext', output);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doomiaichat",
3
- "version": "7.1.15",
3
+ "version": "7.1.16",
4
4
  "description": "Doomisoft OpenAI",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/corzbot.ts CHANGED
@@ -333,7 +333,7 @@ export default class CorzBot extends GptBase {
333
333
  const spiltPreresponse = result.thinking.text.slice(preresponseText.length)
334
334
  preresponseText = result.thinking.text;
335
335
  fullanswer.push(spiltPreresponse);// = [result.thinking.text];// .push(result.thinking.text);
336
- let output = { successed: true, type, content_type, role, requestid, segment: spiltPreresponse, text: fullanswer.join(''), index: index++, session_id: conversation_id };
336
+ let output = { successed: true, type, content_type, role, requestid, segment: spiltPreresponse, text: fullanswer.join(''), index: index++, session_id: conversation_id, preresponse: true, preresponseover: result.thinking.completed };
337
337
  if (attach) output = Object.assign({}, output, attach);
338
338
  this.emit('chattext', output)
339
339
  }