@cobrowser/chatgpt 0.7.43-beta.1 → 0.7.44

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.
@@ -79,13 +79,13 @@ class CopilotService extends BaseService_1.default {
79
79
  if (this.assistantId) {
80
80
  // Route based on id shape: asst_* => Assistant API, prompt_* => Responses API
81
81
  if (yield this.isAssistantIdFormat(this.assistantId)) {
82
- logger_1.default.info(':: CopilotServicee.suggest :: Fetching suggestion through Assistant API ::');
82
+ logger_1.default.info(':: CopilotServicee.suggest :: Fetching suggestions through Assistant API ::');
83
83
  return yield this.getAssistantSuggestions(conversation, suggestionLanguage);
84
84
  }
85
- logger_1.default.info(':: CopilotServicee.suggest :: Fetching suggestion through Responses API ::');
85
+ logger_1.default.info(':: CopilotServicee.suggest :: Fetching suggestions through Responses API ::');
86
86
  return yield this.getPromptSuggestions(conversation, suggestionLanguage);
87
87
  }
88
- logger_1.default.info(':: CopilotServicee.suggest :: Fetching suggestion through Chat Completion API ::');
88
+ logger_1.default.info(':: CopilotServicee.suggest :: Fetching suggestions through Chat Completion API ::');
89
89
  return yield this.getChatCompletionSuggestions(conversation, suggestionLanguage);
90
90
  }
91
91
  catch (e) {
@@ -415,9 +415,8 @@ _CopilotService_instances = new WeakSet(), _CopilotService_processSuggestions =
415
415
  }
416
416
  catch (e) {
417
417
  logger_1.default.error('Failed to parse stringified array, returning the data as is...');
418
- return data;
419
418
  }
420
419
  }
421
- // return data as is if format is different
420
+ // return data as is if format is different or try-catch threw an error
422
421
  return data;
423
422
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobrowser/chatgpt",
3
- "version": "0.7.43-beta.1",
3
+ "version": "0.7.44",
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": "a4d06097c6989a8956d8273ba09b5f3918963978"
43
+ "gitHead": "573059b245f281c1bf93e38937b666e725f58019"
44
44
  }