@kudoai/chatgpt.js 2.6.7 → 2.6.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.
- package/LICENSE.md +9 -0
- package/README.md +26 -24
- package/chatgpt.js +2056 -2060
- package/dist/chatgpt.min.js +3 -3
- package/docs/README.md +26 -24
- package/docs/SECURITY.md +25 -25
- package/docs/USERGUIDE.md +6 -6
- package/docs/de/LICENSE.md +29 -29
- package/docs/de/README.md +25 -23
- package/docs/de/SECURITY.md +25 -25
- package/docs/es/LICENSE.md +29 -29
- package/docs/es/README.md +25 -23
- package/docs/es/SECURITY.md +25 -25
- package/docs/fr/LICENSE.md +29 -29
- package/docs/fr/README.md +25 -23
- package/docs/fr/SECURITY.md +25 -25
- package/docs/hi/LICENSE.md +29 -29
- package/docs/hi/README.md +25 -23
- package/docs/hi/SECURITY.md +25 -25
- package/docs/it/LICENSE.md +26 -26
- package/docs/it/README.md +25 -23
- package/docs/it/SECURITY.md +25 -25
- package/docs/ja/LICENSE.md +29 -29
- package/docs/ja/README.md +25 -23
- package/docs/ja/SECURITY.md +25 -25
- package/docs/ko/LICENSE.md +32 -32
- package/docs/ko/README.md +25 -23
- package/docs/ko/SECURITY.md +25 -25
- package/docs/ne/LICENSE.md +35 -35
- package/docs/ne/README.md +25 -23
- package/docs/ne/SECURITY.md +25 -25
- package/docs/nl/LICENSE.md +29 -29
- package/docs/nl/README.md +25 -23
- package/docs/nl/SECURITY.md +25 -25
- package/docs/pt/LICENSE.md +28 -28
- package/docs/pt/README.md +25 -23
- package/docs/pt/SECURITY.md +25 -25
- package/docs/vi/LICENSE.md +29 -29
- package/docs/vi/README.md +25 -23
- package/docs/vi/SECURITY.md +25 -25
- package/docs/zh-cn/LICENSE.md +29 -29
- package/docs/zh-cn/README.md +25 -24
- package/docs/zh-cn/SECURITY.md +25 -25
- package/docs/zh-tw/LICENSE.md +29 -29
- package/docs/zh-tw/README.md +26 -24
- package/docs/zh-tw/SECURITY.md +25 -25
- package/package.json +73 -73
- package/starters/chrome/LICENSE.md +31 -43
- package/starters/chrome/docs/README.md +93 -93
- package/starters/chrome/docs/SECURITY.md +17 -17
- package/starters/chrome/docs/de/LICENSE.md +31 -31
- package/starters/chrome/docs/de/README.md +93 -93
- package/starters/chrome/docs/es/LICENSE.md +31 -31
- package/starters/chrome/docs/es/README.md +93 -93
- package/starters/chrome/docs/fr/LICENSE.md +31 -31
- package/starters/chrome/docs/fr/README.md +93 -93
- package/starters/chrome/docs/hi/LICENSE.md +31 -31
- package/starters/chrome/docs/hi/README.md +93 -93
- package/starters/chrome/docs/hi/SECURITY.md +17 -17
- package/starters/chrome/docs/it/LICENSE.md +29 -29
- package/starters/chrome/docs/it/README.md +93 -93
- package/starters/chrome/docs/ja/LICENSE.md +31 -31
- package/starters/chrome/docs/ja/README.md +93 -93
- package/starters/chrome/docs/ko/LICENSE.md +34 -34
- package/starters/chrome/docs/ko/README.md +93 -93
- package/starters/chrome/docs/nl/LICENSE.md +31 -30
- package/starters/chrome/docs/nl/README.md +93 -93
- package/starters/chrome/docs/pt/LICENSE.md +31 -31
- package/starters/chrome/docs/pt/README.md +93 -93
- package/starters/chrome/docs/vi/LICENSE.md +31 -31
- package/starters/chrome/docs/vi/README.md +93 -93
- package/starters/chrome/docs/zh-cn/LICENSE.md +31 -31
- package/starters/chrome/docs/zh-cn/README.md +93 -93
- package/starters/chrome/docs/zh-cn/SECURITY.md +17 -17
- package/starters/chrome/docs/zh-tw/LICENSE.md +31 -31
- package/starters/chrome/docs/zh-tw/README.md +93 -93
- package/starters/chrome/extension/background.js +14 -14
- package/starters/chrome/extension/content.js +62 -62
- package/starters/chrome/extension/lib/chatgpt.js +2057 -2061
- package/starters/chrome/extension/lib/settings-utils.js +24 -24
- package/starters/chrome/extension/manifest.json +24 -24
- package/starters/chrome/extension/popup/index.html +62 -62
- package/starters/chrome/extension/popup/popup.js +92 -92
- package/starters/chrome/extension/popup/style.css +55 -55
- package/starters/docs/LICENSE.md +13 -25
- package/starters/docs/README.md +29 -29
- package/starters/docs/de/LICENSE.md +13 -13
- package/starters/docs/de/README.md +29 -29
- package/starters/docs/es/LICENSE.md +13 -13
- package/starters/docs/es/README.md +29 -29
- package/starters/docs/fr/LICENSE.md +13 -13
- package/starters/docs/fr/README.md +29 -29
- package/starters/docs/hi/LICENSE.md +13 -13
- package/starters/docs/hi/README.md +29 -29
- package/starters/docs/it/LICENSE.md +11 -11
- package/starters/docs/it/README.md +29 -29
- package/starters/docs/ja/LICENSE.md +13 -13
- package/starters/docs/ja/README.md +30 -30
- package/starters/docs/ko/LICENSE.md +16 -16
- package/starters/docs/ko/README.md +29 -29
- package/starters/docs/nl/LICENSE.md +13 -13
- package/starters/docs/nl/README.md +29 -29
- package/starters/docs/pt/LICENSE.md +13 -13
- package/starters/docs/pt/README.md +29 -29
- package/starters/docs/vi/LICENSE.md +13 -13
- package/starters/docs/vi/README.md +29 -29
- package/starters/docs/zh-cn/LICENSE.md +13 -13
- package/starters/docs/zh-cn/README.md +30 -30
- package/starters/docs/zh-tw/LICENSE.md +13 -13
- package/starters/docs/zh-tw/README.md +29 -29
- package/starters/greasemonkey/LICENSE.md +31 -43
- package/starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js +5 -5
- package/starters/greasemonkey/docs/README.md +7 -7
- package/starters/greasemonkey/docs/SECURITY.md +17 -17
- package/starters/greasemonkey/docs/de/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/es/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/fr/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/hi/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/hi/SECURITY.md +17 -17
- package/starters/greasemonkey/docs/it/LICENSE.md +29 -29
- package/starters/greasemonkey/docs/ja/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/ko/LICENSE.md +34 -34
- package/starters/greasemonkey/docs/nl/LICENSE.md +31 -30
- package/starters/greasemonkey/docs/pt/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/vi/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/zh-cn/LICENSE.md +31 -31
- package/starters/greasemonkey/docs/zh-cn/SECURITY.md +17 -17
- package/starters/greasemonkey/docs/zh-tw/LICENSE.md +31 -31
- package/LICENSE +0 -21
package/docs/zh-tw/LICENSE.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<h6>
|
|
3
|
-
<a href="../"><img height=15 style="margin: 0 3px -2px" src="https://raw.githubusercontent.com/
|
|
4
|
-
繁體中文 |
|
|
5
|
-
<a href="../../LICENSE.md">English</a> |
|
|
6
|
-
<a href="../zh-cn/LICENSE.md">简体中文</a> |
|
|
7
|
-
<a href="../ja/LICENSE.md">日本</a> |
|
|
8
|
-
<a href="../ko/LICENSE.md">한국인</a> |
|
|
9
|
-
<a href="../hi/LICENSE.md">हिंदी</a> |
|
|
10
|
-
<a href="../ne/LICENSE.md">नेपाली</a> |
|
|
11
|
-
<a href="../de/LICENSE.md">Deutsch</a> |
|
|
12
|
-
<a href="../es/LICENSE.md">Español</a> |
|
|
13
|
-
<a href="../fr/LICENSE.md">Français</a> |
|
|
14
|
-
<a href="../it/LICENSE.md">Italiano</a> |
|
|
15
|
-
<a href="../nl/LICENSE.md">Nederlands</a> |
|
|
16
|
-
<a href="../pt/LICENSE.md">Português</a> |
|
|
17
|
-
<a href="../vi/LICENSE.md">Việt</a>
|
|
18
|
-
</h6>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
# MIT 许可证
|
|
22
|
-
|
|
23
|
-
版權所有
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h6>
|
|
3
|
+
<a href="../"><img height=15 style="margin: 0 3px -2px" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/6fa1659feadaf70853996dc7d7f6e1ab5a1e6301/media/images/icons/earth-americas.svg"></a>
|
|
4
|
+
繁體中文 |
|
|
5
|
+
<a href="../../LICENSE.md">English</a> |
|
|
6
|
+
<a href="../zh-cn/LICENSE.md">简体中文</a> |
|
|
7
|
+
<a href="../ja/LICENSE.md">日本</a> |
|
|
8
|
+
<a href="../ko/LICENSE.md">한국인</a> |
|
|
9
|
+
<a href="../hi/LICENSE.md">हिंदी</a> |
|
|
10
|
+
<a href="../ne/LICENSE.md">नेपाली</a> |
|
|
11
|
+
<a href="../de/LICENSE.md">Deutsch</a> |
|
|
12
|
+
<a href="../es/LICENSE.md">Español</a> |
|
|
13
|
+
<a href="../fr/LICENSE.md">Français</a> |
|
|
14
|
+
<a href="../it/LICENSE.md">Italiano</a> |
|
|
15
|
+
<a href="../nl/LICENSE.md">Nederlands</a> |
|
|
16
|
+
<a href="../pt/LICENSE.md">Português</a> |
|
|
17
|
+
<a href="../vi/LICENSE.md">Việt</a>
|
|
18
|
+
</h6>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
# MIT 许可证
|
|
22
|
+
|
|
23
|
+
版權所有 © 2023–2024 [KudoAI](https://github.com/KudoAI) & [貢獻者](.#-貢獻者)
|
|
24
|
+
|
|
25
|
+
特此免費授予任何取得副本的人許可本軟體和相關文件文件(『軟體』),處理在軟體中不受限制,包括但不限於權利使用、複製、修改、合併、發布、分發、再授權和/或出售該軟體的副本,並允許該軟體是提供這樣做,但須滿足以下條件:
|
|
26
|
+
|
|
27
|
+
上述版權聲明和本許可聲明應包含在所有軟體的副本或重要部分。
|
|
28
|
+
|
|
29
|
+
本軟體『依現況』提供,不提供任何形式的明示或保證暗示的,包括但不限於適銷性保證,適用於特定目的和非侵權。 在任何情況下都不得作者或版權持有人對任何索賠、損害或其他責任,無論是在合約、侵權或其他方面的行為中,由以下原因引起,出於或與軟體或使用或其他交易有關軟體。
|
package/docs/zh-tw/README.md
CHANGED
|
@@ -27,10 +27,12 @@
|
|
|
27
27
|
|
|
28
28
|
<br>
|
|
29
29
|
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
<a href="https://chatgpt.js.org">
|
|
31
|
+
<picture>
|
|
32
|
+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/darkmode.png">
|
|
33
|
+
<img width=800 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/lightmode.png">
|
|
34
|
+
</picture>
|
|
35
|
+
</a>
|
|
34
36
|
|
|
35
37
|
### 🤖 適用於 ChatGPT 的強大客戶端 JavaScript 庫
|
|
36
38
|
|
|
@@ -39,19 +41,19 @@
|
|
|
39
41
|
<br>
|
|
40
42
|
|
|
41
43
|
<div id="shields" align="center">
|
|
44
|
+
|
|
42
45
|
[](https://github.com/KudoAI/chatgpt.js/stargazers)
|
|
43
46
|
[](LICENSE.md)
|
|
44
|
-
[](https://github.com/KudoAI/chatgpt.js/commits/main)
|
|
48
|
+

|
|
49
|
+
[](https://www.codefactor.io/repository/github/kudoai/chatgpt.js)
|
|
47
50
|
[](https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js)
|
|
48
51
|
[](https://github.com/sindresorhus/awesome-chatgpt#javascript)
|
|
49
52
|
[](https://www.producthunt.com/posts/chatgpt-js)
|
|
50
53
|
|
|
51
|
-
|
|
52
54
|
</div>
|
|
53
55
|
|
|
54
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
56
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
55
57
|
|
|
56
58
|
<div id="intro">
|
|
57
59
|
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
- 便於使用
|
|
67
69
|
- 輕量級(但性能最佳)
|
|
68
70
|
|
|
69
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
71
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
70
72
|
|
|
71
73
|
<div id="importing">
|
|
72
74
|
|
|
@@ -80,7 +82,7 @@
|
|
|
80
82
|
|
|
81
83
|
```js
|
|
82
84
|
(async () => {
|
|
83
|
-
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.
|
|
85
|
+
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.8/dist/chatgpt.min.js');
|
|
84
86
|
// 你的代碼在這裡...
|
|
85
87
|
})();
|
|
86
88
|
```
|
|
@@ -89,7 +91,7 @@
|
|
|
89
91
|
|
|
90
92
|
```js
|
|
91
93
|
var xhr = new XMLHttpRequest();
|
|
92
|
-
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.
|
|
94
|
+
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.8/dist/chatgpt.min.js');
|
|
93
95
|
xhr.onload = function () {
|
|
94
96
|
if (xhr.status === 200) {
|
|
95
97
|
var chatgptJS = document.createElement('script');
|
|
@@ -105,13 +107,13 @@ function yourCode() {
|
|
|
105
107
|
}
|
|
106
108
|
```
|
|
107
109
|
|
|
108
|
-
### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://raw.githubusercontent.com/
|
|
110
|
+
### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/starters/media/images/icons/tampermonkey-icon28.png"><img style="margin: 0 2px -0.035rem 1px" height=17.5 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/starters/media/images/icons/violentmonkey-icon100.png"> Greasemonkey:
|
|
109
111
|
|
|
110
112
|
> **筆記** _使用入門模板: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/KudoAI/chatgpt.js-greasemonkey-starter)_
|
|
111
113
|
|
|
112
114
|
```js
|
|
113
115
|
...
|
|
114
|
-
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.
|
|
116
|
+
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.8/dist/chatgpt.min.js
|
|
115
117
|
// ==/UserScript==
|
|
116
118
|
|
|
117
119
|
// 你的代碼在這裡...
|
|
@@ -123,7 +125,7 @@ function yourCode() {
|
|
|
123
125
|
|
|
124
126
|
由於 Google 不允許遠端程式碼,因此需要在本地導入 chatgpt.js:
|
|
125
127
|
|
|
126
|
-
1. 將 https://raw.githubusercontent.com/
|
|
128
|
+
1. 將 https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/chatgpt.js 保存到子目錄(本例中為 `lib`)
|
|
127
129
|
|
|
128
130
|
2. 將 ES6 導出語句添加到 `lib/chatgpt.js` 的末尾
|
|
129
131
|
```js
|
|
@@ -147,7 +149,7 @@ export { chatgpt }
|
|
|
147
149
|
})();
|
|
148
150
|
```
|
|
149
151
|
|
|
150
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
152
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
151
153
|
|
|
152
154
|
<div id="npm">
|
|
153
155
|
|
|
@@ -165,7 +167,7 @@ npm install @kudoai/chatgpt.js
|
|
|
165
167
|
|
|
166
168
|
</div>
|
|
167
169
|
|
|
168
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
170
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
169
171
|
|
|
170
172
|
<div id="usage">
|
|
171
173
|
|
|
@@ -188,7 +190,7 @@ chatgpt.get('reply', 'last');
|
|
|
188
190
|
|
|
189
191
|
如果沒有,請查看擴展的[用戶指南](https://github.com/KudoAI/chatgpt.js/blob/main/docs/USERGUIDE.md),或者只需提交一個[問題](https://github.com/KudoAI/chatgpt.js/issues) 或 [PR](https://github.com/KudoAI/chatgpt.js/pulls) 它將被集成,簡單易行!
|
|
190
192
|
|
|
191
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
193
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
192
194
|
|
|
193
195
|
<div id="showcase">
|
|
194
196
|
|
|
@@ -267,7 +269,7 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
267
269
|
如果您使用 chatgpt.js 製作了一些想要分享的內容,請發送電子郵件至 <a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> 或打開一個 <a href="https://github.com/KudoAI/chatgpt.js/pulls" target="_blank" rel="noopener">pull 請求</a>!
|
|
268
270
|
</p>
|
|
269
271
|
|
|
270
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
272
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
271
273
|
|
|
272
274
|
<div id="contributors">
|
|
273
275
|
|
|
@@ -304,12 +306,12 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
304
306
|
[](https://github.com/Luwa-Tech)
|
|
305
307
|
[](https://github.com/dependabot)
|
|
306
308
|
[](https://chat.openai.com)
|
|
307
|
-
[](https://poe.com)
|
|
308
310
|
[](https://github.com/ImgBotApp)
|
|
309
311
|
|
|
310
312
|
</div><br>
|
|
311
313
|
|
|
312
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
314
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
313
315
|
|
|
314
316
|
<div id="partners">
|
|
315
317
|
|
|
@@ -322,15 +324,15 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
322
324
|
<div id="partners-collage" align="center">
|
|
323
325
|
|
|
324
326
|
<picture>
|
|
325
|
-
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/
|
|
326
|
-
<img width=888 src="https://raw.githubusercontent.com/
|
|
327
|
+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/logos/partners/collage/white.png">
|
|
328
|
+
<img width=888 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/logos/partners/collage/black.png">
|
|
327
329
|
</picture>
|
|
328
330
|
|
|
329
331
|
</div>
|
|
330
332
|
|
|
331
333
|
<br>
|
|
332
334
|
|
|
333
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
335
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
334
336
|
|
|
335
337
|
<div align="center">
|
|
336
338
|
|
package/docs/zh-tw/SECURITY.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<h6>
|
|
3
|
-
<a href="../"><img height=15 style="margin: 0 3px -2px" src="https://raw.githubusercontent.com/
|
|
4
|
-
繁體中文 |
|
|
5
|
-
<a href="../SECURITY.md">English</a> |
|
|
6
|
-
<a href="../zh-cn/SECURITY.md">简体中文</a> |
|
|
7
|
-
<a href="../ja/SECURITY.md">日本</a> |
|
|
8
|
-
<a href="../ko/SECURITY.md">한국인</a> |
|
|
9
|
-
<a href="../hi/SECURITY.md">हिंदी</a> |
|
|
10
|
-
<a href="../ne/SECURITY.md">नेपाली</a> |
|
|
11
|
-
<a href="../de/SECURITY.md">Deutsch</a> |
|
|
12
|
-
<a href="../es/SECURITY.md">Español</a> |
|
|
13
|
-
<a href="../fr/SECURITY.md">Français</a> |
|
|
14
|
-
<a href="../it/SECURITY.md">Italiano</a> |
|
|
15
|
-
<a href="../nl/SECURITY.md">Nederlands</a> |
|
|
16
|
-
<a href="../pt/SECURITY.md">Português</a> |
|
|
17
|
-
<a href="../vi/SECURITY.md">Việt</a>
|
|
18
|
-
</h6>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
# 安全策略
|
|
22
|
-
|
|
23
|
-
如果您發現漏洞,請打開[安全公告草案](https://github.com/KudoAI/chatgpt.js/security/advisories/new)。
|
|
24
|
-
|
|
25
|
-
也歡迎拉取請求,但出於安全原因,請發送電子郵件至 <security@kudoai.com> 並等待回復後再公開。
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h6>
|
|
3
|
+
<a href="../"><img height=15 style="margin: 0 3px -2px" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/6fa1659feadaf70853996dc7d7f6e1ab5a1e6301/media/images/icons/earth-americas.svg"></a>
|
|
4
|
+
繁體中文 |
|
|
5
|
+
<a href="../SECURITY.md">English</a> |
|
|
6
|
+
<a href="../zh-cn/SECURITY.md">简体中文</a> |
|
|
7
|
+
<a href="../ja/SECURITY.md">日本</a> |
|
|
8
|
+
<a href="../ko/SECURITY.md">한국인</a> |
|
|
9
|
+
<a href="../hi/SECURITY.md">हिंदी</a> |
|
|
10
|
+
<a href="../ne/SECURITY.md">नेपाली</a> |
|
|
11
|
+
<a href="../de/SECURITY.md">Deutsch</a> |
|
|
12
|
+
<a href="../es/SECURITY.md">Español</a> |
|
|
13
|
+
<a href="../fr/SECURITY.md">Français</a> |
|
|
14
|
+
<a href="../it/SECURITY.md">Italiano</a> |
|
|
15
|
+
<a href="../nl/SECURITY.md">Nederlands</a> |
|
|
16
|
+
<a href="../pt/SECURITY.md">Português</a> |
|
|
17
|
+
<a href="../vi/SECURITY.md">Việt</a>
|
|
18
|
+
</h6>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
# 安全策略
|
|
22
|
+
|
|
23
|
+
如果您發現漏洞,請打開[安全公告草案](https://github.com/KudoAI/chatgpt.js/security/advisories/new)。
|
|
24
|
+
|
|
25
|
+
也歡迎拉取請求,但出於安全原因,請發送電子郵件至 <security@kudoai.com> 並等待回復後再公開。
|
package/package.json
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kudoai/chatgpt.js",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"description": "Client-side JavaScript library for ChatGPT",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "KudoAI & contributors",
|
|
7
|
-
"email": "contact@kudoai.com",
|
|
8
|
-
"url": "https://www.kudoai.com"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://chatgpt.js.org",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"browser": "chatgpt.js",
|
|
13
|
-
"files": [
|
|
14
|
-
"chatgpt.js",
|
|
15
|
-
"dist/chatgpt.min.js",
|
|
16
|
-
"docs/",
|
|
17
|
-
"starters/"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"lint": "eslint . --ext js,json,yml --cache",
|
|
21
|
-
"lint:all": "eslint . --ext js,json,yml",
|
|
22
|
-
"lint:fix": "eslint . --ext js,json,yml --fix --cache",
|
|
23
|
-
"lint:fix-all": "eslint . --ext js,json,yml --fix",
|
|
24
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
|
-
"preview:docs": "docsify serve docs",
|
|
26
|
-
"build:js": "minify-js chatgpt.js dist/chatgpt.min.js",
|
|
27
|
-
"build:css": "scss-to-css",
|
|
28
|
-
"bump:patch": "bash utils/bump.sh patch",
|
|
29
|
-
"bump:minor": "bash utils/bump.sh minor",
|
|
30
|
-
"bump:major": "bash utils/bump.sh major",
|
|
31
|
-
"publish:patch": "bash utils/bump.sh patch --publish",
|
|
32
|
-
"publish:minor": "bash utils/bump.sh minor --publish",
|
|
33
|
-
"publish:major": "bash utils/bump.sh major --publish"
|
|
34
|
-
},
|
|
35
|
-
"repository": {
|
|
36
|
-
"type": "git",
|
|
37
|
-
"url": "git+https://github.com/KudoAI/chatgpt.js.git"
|
|
38
|
-
},
|
|
39
|
-
"keywords": [
|
|
40
|
-
"ai",
|
|
41
|
-
"artificial intelligence",
|
|
42
|
-
"bot",
|
|
43
|
-
"chat",
|
|
44
|
-
"chatbot",
|
|
45
|
-
"chatgpt",
|
|
46
|
-
"clientside",
|
|
47
|
-
"conversational ai",
|
|
48
|
-
"frontend",
|
|
49
|
-
"gpt",
|
|
50
|
-
"gpt3",
|
|
51
|
-
"gpt4",
|
|
52
|
-
"javascript",
|
|
53
|
-
"library",
|
|
54
|
-
"machine learning",
|
|
55
|
-
"ml",
|
|
56
|
-
"nlp",
|
|
57
|
-
"openai"
|
|
58
|
-
],
|
|
59
|
-
"bugs": "https://github.com/KudoAI/chatgpt.js/issues",
|
|
60
|
-
"funding": {
|
|
61
|
-
"type": "github",
|
|
62
|
-
"url": "https://github.com/sponsors/KudoAI"
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@adamlui/minify.js": "^1.
|
|
66
|
-
"@adamlui/scss-to-css": "^1.
|
|
67
|
-
"docsify-cli": "^4.4.4",
|
|
68
|
-
"eslint": "^8.57.0",
|
|
69
|
-
"eslint-plugin-json-schema-validator": "^
|
|
70
|
-
"eslint-plugin-yml": "^1.
|
|
71
|
-
"husky": "^9.0.11"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@kudoai/chatgpt.js",
|
|
3
|
+
"version": "2.6.8",
|
|
4
|
+
"description": "Client-side JavaScript library for ChatGPT",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "KudoAI & contributors",
|
|
7
|
+
"email": "contact@kudoai.com",
|
|
8
|
+
"url": "https://www.kudoai.com"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://chatgpt.js.org",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"browser": "chatgpt.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"chatgpt.js",
|
|
15
|
+
"dist/chatgpt.min.js",
|
|
16
|
+
"docs/",
|
|
17
|
+
"starters/"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"lint": "eslint . --ext js,json,yml --cache",
|
|
21
|
+
"lint:all": "eslint . --ext js,json,yml",
|
|
22
|
+
"lint:fix": "eslint . --ext js,json,yml --fix --cache",
|
|
23
|
+
"lint:fix-all": "eslint . --ext js,json,yml --fix",
|
|
24
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
|
+
"preview:docs": "docsify serve docs",
|
|
26
|
+
"build:js": "minify-js chatgpt.js dist/chatgpt.min.js",
|
|
27
|
+
"build:css": "scss-to-css",
|
|
28
|
+
"bump:patch": "bash utils/bump.sh patch",
|
|
29
|
+
"bump:minor": "bash utils/bump.sh minor",
|
|
30
|
+
"bump:major": "bash utils/bump.sh major",
|
|
31
|
+
"publish:patch": "bash utils/bump.sh patch --publish",
|
|
32
|
+
"publish:minor": "bash utils/bump.sh minor --publish",
|
|
33
|
+
"publish:major": "bash utils/bump.sh major --publish"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/KudoAI/chatgpt.js.git"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"ai",
|
|
41
|
+
"artificial intelligence",
|
|
42
|
+
"bot",
|
|
43
|
+
"chat",
|
|
44
|
+
"chatbot",
|
|
45
|
+
"chatgpt",
|
|
46
|
+
"clientside",
|
|
47
|
+
"conversational ai",
|
|
48
|
+
"frontend",
|
|
49
|
+
"gpt",
|
|
50
|
+
"gpt3",
|
|
51
|
+
"gpt4",
|
|
52
|
+
"javascript",
|
|
53
|
+
"library",
|
|
54
|
+
"machine learning",
|
|
55
|
+
"ml",
|
|
56
|
+
"nlp",
|
|
57
|
+
"openai"
|
|
58
|
+
],
|
|
59
|
+
"bugs": "https://github.com/KudoAI/chatgpt.js/issues",
|
|
60
|
+
"funding": {
|
|
61
|
+
"type": "github",
|
|
62
|
+
"url": "https://github.com/sponsors/KudoAI"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@adamlui/minify.js": "^1.4.10",
|
|
66
|
+
"@adamlui/scss-to-css": "^1.7.8",
|
|
67
|
+
"docsify-cli": "^4.4.4",
|
|
68
|
+
"eslint": "^8.57.0",
|
|
69
|
+
"eslint-plugin-json-schema-validator": "^5.1.0",
|
|
70
|
+
"eslint-plugin-yml": "^1.14.0",
|
|
71
|
+
"husky": "^9.0.11"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,43 +1,31 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<h6>
|
|
3
|
-
<picture>
|
|
4
|
-
<source type="image/svg+xml" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-white-icon32.svg">
|
|
5
|
-
<img height=14 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-icon32.svg">
|
|
6
|
-
</picture>
|
|
7
|
-
English |
|
|
8
|
-
<a href="docs/zh-cn/LICENSE.md">简体中文</a> |
|
|
9
|
-
<a href="docs/zh-tw/LICENSE.md">繁體中文</a> |
|
|
10
|
-
<a href="docs/ja/LICENSE.md">日本</a> |
|
|
11
|
-
<a href="docs/ko/LICENSE.md">한국인</a> |
|
|
12
|
-
<a href="docs/hi/LICENSE.md">हिंदी</a> |
|
|
13
|
-
<a href="docs/de/LICENSE.md">Deutsch</a> |
|
|
14
|
-
<a href="docs/es/LICENSE.md">Español</a> |
|
|
15
|
-
<a href="docs/fr/LICENSE.md">Français</a> |
|
|
16
|
-
<a href="docs/it/LICENSE.md">Italiano</a> |
|
|
17
|
-
<a href="docs/nl/LICENSE.md">Nederlands</a> |
|
|
18
|
-
<a href="docs/pt/LICENSE.md">Português</a> |
|
|
19
|
-
<a href="docs/vi/LICENSE.md">Việt</a>
|
|
20
|
-
</h6>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
# 🏛️ MIT License
|
|
24
|
-
|
|
25
|
-
**Copyright
|
|
26
|
-
|
|
27
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
28
|
-
|
|
29
|
-
in
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
furnished to do so, subject to the following conditions:
|
|
33
|
-
|
|
34
|
-
The above copyright notice and this permission notice shall be included in all
|
|
35
|
-
copies or substantial portions of the Software.
|
|
36
|
-
|
|
37
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
38
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
39
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
40
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
41
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
42
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
43
|
-
SOFTWARE.
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h6>
|
|
3
|
+
<picture>
|
|
4
|
+
<source type="image/svg+xml" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-white-icon32.svg">
|
|
5
|
+
<img height=14 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-icon32.svg">
|
|
6
|
+
</picture>
|
|
7
|
+
English |
|
|
8
|
+
<a href="docs/zh-cn/LICENSE.md">简体中文</a> |
|
|
9
|
+
<a href="docs/zh-tw/LICENSE.md">繁體中文</a> |
|
|
10
|
+
<a href="docs/ja/LICENSE.md">日本</a> |
|
|
11
|
+
<a href="docs/ko/LICENSE.md">한국인</a> |
|
|
12
|
+
<a href="docs/hi/LICENSE.md">हिंदी</a> |
|
|
13
|
+
<a href="docs/de/LICENSE.md">Deutsch</a> |
|
|
14
|
+
<a href="docs/es/LICENSE.md">Español</a> |
|
|
15
|
+
<a href="docs/fr/LICENSE.md">Français</a> |
|
|
16
|
+
<a href="docs/it/LICENSE.md">Italiano</a> |
|
|
17
|
+
<a href="docs/nl/LICENSE.md">Nederlands</a> |
|
|
18
|
+
<a href="docs/pt/LICENSE.md">Português</a> |
|
|
19
|
+
<a href="docs/vi/LICENSE.md">Việt</a>
|
|
20
|
+
</h6>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
# 🏛️ MIT License
|
|
24
|
+
|
|
25
|
+
**Copyright © 2023–2024 [KudoAI](https://github.com/KudoAI) & contributors**
|
|
26
|
+
|
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
28
|
+
|
|
29
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
30
|
+
|
|
31
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|