@cobrowser/chatgpt 0.5.6 → 0.5.8

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.
@@ -69,7 +69,9 @@ class TranslationService extends BaseService_1.default {
69
69
  return Promise.reject(new Error('text must be provided'));
70
70
  }
71
71
  // instruction on what to do with the text
72
- const translateText = `In which language is this text in '${text}', return language code in json`,
72
+ const translateText = `In which language is this text in '${text}', The response should be
73
+ {"languageCode": "Code_here", "isError": 'true or false based on if you did fine the language code or not'}
74
+ other responses or explanation are not allowed `,
73
75
  // the body we need to send to the request
74
76
  requestBody = {
75
77
  model: this.chatGptModel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobrowser/chatgpt",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "chatgpt services to connect our projects with chatgpt api",
5
5
  "keywords": [
6
6
  "chatgpt",
@@ -38,5 +38,5 @@
38
38
  "bugs": {
39
39
  "url": "https://bitbucket.org/cobrowser/cb_utils/issues"
40
40
  },
41
- "gitHead": "bb937a81d830e69871f1741ef3c4620204978f32"
41
+ "gitHead": "6005d31fd611bbf65652f276593e6a5a8eb036e6"
42
42
  }