-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathChatGptWidget.json
More file actions
78 lines (78 loc) · 2.46 KB
/
Copy pathChatGptWidget.json
File metadata and controls
78 lines (78 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"id": "com.rohitchouhan.sap.chatgptwidget",
"version": "1.0.3",
"name": "ChatGPT Widget",
"description": "ChatGPT Custom Widget for SAP Analytics Cloud, To make your application more useful and effective.",
"newInstancePrefix": "ChatGptWidget",
"vendor": "Rohit Chouhan",
"eula": "",
"license": "MIT",
"icon": "https:\/\/raw.githubusercontent.com\/SAP-Custom-Widget\/ChatGptWidget\/main\/icon.png",
"webcomponents": [
{
"kind": "main",
"tag": "com-rohitchouhan-sap-chatgptwidget",
"url": "https:\/\/cdn.jsdelivr.net\/gh\/SAP-Custom-Widget\/ChatGptWidget@1.0.2\/ChatGptWidget.js",
"integrity": "",
"ignoreIntegrity": true
},
{
"kind": "builder",
"tag": "com-rohitchouhan-sap-chatgptwidget-builder",
"url": "https:\/\/cdn.jsdelivr.net\/gh\/SAP-Custom-Widget\/ChatGptWidget@1.0.2\/ChatGptWidget_Builder.js",
"integrity": "",
"ignoreIntegrity": true
}
],
"properties": {
"apiKey": {
"description": "Api Key of ChatGPT",
"type": "string",
"default": ""
},
"max_tokens": {
"description": "Result Max Length",
"type": "integer",
"default": 1024
}
},
"methods": {
"setApiKey": {
"description": "Set Api Key of ChatGPT",
"parameters": [
{
"name": "apiKey",
"type": "string",
"description": "Api Key of ChatGPT"
}
],
"body": "this.apiKey = apiKey;"
},
"getApiKey": {
"returnType": "string",
"description": "Return Api Key of ChatGPT",
"body": "return this.apiKey;"
},
"setMax_tokens": {
"description": "Set Result Max Length",
"parameters": [
{
"name": "max_tokens",
"type": "integer",
"description": "Result Max Length"
}
],
"body": "this.max_tokens = max_tokens;"
},
"getMax_tokens": {
"returnType": "integer",
"description": "Return Result Max Length",
"body": "return this.max_tokens;"
}
},
"events": {
"onClick": {
"description": "User Clicked."
}
}
}