@cobrowser/chatgpt 0.7.35-dev.0 → 0.7.35-dev.1

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.
@@ -204,7 +204,7 @@ class CopilotService extends BaseService_1.default {
204
204
  if (assistantMessages.length) {
205
205
  const text = assistantMessages.flatMap((m) => { var _a, _b; return ((_b = (_a = m.content) === null || _a === void 0 ? void 0 : _a.filter((c) => c.type === 'output_text')) === null || _b === void 0 ? void 0 : _b.map((c) => c.text)) || []; });
206
206
  return {
207
- data: JSON.stringify([text.pop()]),
207
+ data: [text.pop()],
208
208
  threadId: this.conversationId,
209
209
  usageTokens: {
210
210
  prompt_tokens: Number((_c = ((_b = response.usage) === null || _b === void 0 ? void 0 : _b.prompt_tokens)) !== null && _c !== void 0 ? _c : 0),
@@ -215,7 +215,7 @@ class CopilotService extends BaseService_1.default {
215
215
  }
216
216
  if (response.output_text) {
217
217
  return {
218
- data: JSON.stringify([response.output_text]),
218
+ data: [response.output_text],
219
219
  threadId: this.conversationId,
220
220
  usageTokens: {
221
221
  prompt_tokens: Number((_j = ((_h = response.usage) === null || _h === void 0 ? void 0 : _h.prompt_tokens)) !== null && _j !== void 0 ? _j : 0),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobrowser/chatgpt",
3
- "version": "0.7.35-dev.0",
3
+ "version": "0.7.35-dev.1",
4
4
  "description": "chatgpt services to connect our projects with chatgpt api",
5
5
  "keywords": [
6
6
  "chatgpt",
@@ -40,5 +40,5 @@
40
40
  "bugs": {
41
41
  "url": "https://bitbucket.org/cobrowser/cb_utils/issues"
42
42
  },
43
- "gitHead": "8fb0538306c1efe85bf7b5d3b09c6a15bf729ddd"
43
+ "gitHead": "d097122566b90da3a6ad748dc2dfe9d5e9f0fae6"
44
44
  }