@cobrowser/chatgpt 0.7.1 → 0.7.2
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/constants.d.ts +1 -1
- package/dist/constants.js +3 -5
- package/package.json +2 -2
package/dist/constants.d.ts
CHANGED
|
@@ -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 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.\n\nSuggestions: Request 2 suggestions from user's perspective that he can ask. It should be an array of strings.\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 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";
|
|
10
10
|
export declare const DESTINATION_LANGUAGE = "English";
|
package/dist/constants.js
CHANGED
|
@@ -14,19 +14,17 @@ exports.MESSAGE_TYPES = {
|
|
|
14
14
|
// Default prompt for ChatGPT
|
|
15
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.
|
|
16
16
|
|
|
17
|
-
You will respond with a JSON. It will be in the format:
|
|
17
|
+
You will always respond with a JSON. It will be in the format:
|
|
18
18
|
|
|
19
19
|
{ answer: '', suggestions: [], connectWithAgent: true or false }
|
|
20
20
|
|
|
21
21
|
Fields in the JSON:
|
|
22
22
|
|
|
23
|
-
Answer: It will consist of the user's query answer based on the ongoing conversation.
|
|
23
|
+
Answer: It will consist of the user's query answer based on the ongoing conversation. Restrict this field to 100 characters.
|
|
24
24
|
|
|
25
|
-
Suggestions: Request 2 suggestions from user's perspective that he can ask. It should be an array of strings.
|
|
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.
|
|
26
26
|
|
|
27
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.
|
|
28
|
-
|
|
29
|
-
Restrict answer field to 200 characters and suggestions to 50 characters each.
|
|
30
28
|
`;
|
|
31
29
|
// Default destination language
|
|
32
30
|
exports.DESTINATION_LANGUAGE = 'English';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobrowser/chatgpt",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
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": "
|
|
41
|
+
"gitHead": "0429dead571677c56bd9e618d6e3ec91acf3d4f3"
|
|
42
42
|
}
|