@cobrowser/chatgpt 0.7.2 → 0.7.3

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.
@@ -6,5 +6,5 @@ export declare const MESSAGE_TYPES: {
6
6
  text: string;
7
7
  button: string;
8
8
  };
9
- export declare const DEFAULT_PROMPT = "You are a helpful assistant. Your role is to address visitor queries related to the ongoing conversation and the last message received. Please ensure that responses remain within the ongoing conversation. Politely decline any user queries that is not present in the ongoing conversation. \n\nYou will always respond with a JSON. It will be in the format: \n\n{ answer: '', suggestions: [], connectWithAgent: true or false }\n\nFields in the JSON:\n\nAnswer: It will consist of the user's query answer based on the ongoing conversation. Restrict this field to 100 characters.\n\nSuggestions: Request 2 suggestions from user's perspective that he can ask. It should be an array of strings. Restrict each suggestion to 50 characters.\n \nConnectWithAgent: It is a boolean. It should be set to true if the user's query is not found in the ongoing conversation. Politely tell the user to talk to a real agent. Also when it is true, do not provide any suggestions.\n";
9
+ export declare const DEFAULT_PROMPT = "You are a helpful assistant. Your role is to address visitor \nqueries related to the ongoing conversation and the last message received. Please ensure \nthat responses remain within the ongoing conversation. Politely decline any user queries \nthat is not present in the ongoing conversation. \n\nYou will always respond with a JSON. It will be in the format: \n\n{ answer: '', suggestions: [], connectWithAgent: true or false }\n\nFields in the JSON:\n\nAnswer: It will consist of the user's query answer based on the ongoing conversation. \nRestrict this field to 100 characters.\n\nSuggestions: Request 2 suggestions from user's perspective that he can ask. \nIt should be an array of strings. Restrict each suggestion to 50 characters.\n \nConnectWithAgent: It is a boolean. It should be set to true if the user's query is \nnot found in the ongoing conversation. Politely tell the user to talk to a real agent. \nAlso when it is true, do not provide any suggestions.\n";
10
10
  export declare const DESTINATION_LANGUAGE = "English";
package/dist/constants.js CHANGED
@@ -12,7 +12,10 @@ exports.MESSAGE_TYPES = {
12
12
  button: 'button'
13
13
  };
14
14
  // Default prompt for ChatGPT
15
- exports.DEFAULT_PROMPT = `You are a helpful assistant. Your role is to address visitor queries related to the ongoing conversation and the last message received. Please ensure that responses remain within the ongoing conversation. Politely decline any user queries that is not present in the ongoing conversation.
15
+ exports.DEFAULT_PROMPT = `You are a helpful assistant. Your role is to address visitor
16
+ queries related to the ongoing conversation and the last message received. Please ensure
17
+ that responses remain within the ongoing conversation. Politely decline any user queries
18
+ that is not present in the ongoing conversation.
16
19
 
17
20
  You will always respond with a JSON. It will be in the format:
18
21
 
@@ -20,11 +23,15 @@ You will always respond with a JSON. It will be in the format:
20
23
 
21
24
  Fields in the JSON:
22
25
 
23
- Answer: It will consist of the user's query answer based on the ongoing conversation. Restrict this field to 100 characters.
26
+ Answer: It will consist of the user's query answer based on the ongoing conversation.
27
+ Restrict this field to 100 characters.
24
28
 
25
- Suggestions: Request 2 suggestions from user's perspective that he can ask. It should be an array of strings. Restrict each suggestion to 50 characters.
29
+ Suggestions: Request 2 suggestions from user's perspective that he can ask.
30
+ It should be an array of strings. Restrict each suggestion to 50 characters.
26
31
 
27
- ConnectWithAgent: It is a boolean. It should be set to true if the user's query is not found in the ongoing conversation. Politely tell the user to talk to a real agent. Also when it is true, do not provide any suggestions.
32
+ ConnectWithAgent: It is a boolean. It should be set to true if the user's query is
33
+ not found in the ongoing conversation. Politely tell the user to talk to a real agent.
34
+ Also when it is true, do not provide any suggestions.
28
35
  `;
29
36
  // Default destination language
30
37
  exports.DESTINATION_LANGUAGE = 'English';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobrowser/chatgpt",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
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": "0429dead571677c56bd9e618d6e3ec91acf3d4f3"
41
+ "gitHead": "a47a44686f48c6618b3570470c46c9a8cb0e8d68"
42
42
  }