@kudoai/chatgpt.js 2.6.6 → 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 +345 -341
- package/chatgpt.js +2056 -2060
- package/dist/chatgpt.min.js +3 -3
- package/docs/README.md +36 -32
- package/docs/SECURITY.md +25 -25
- package/docs/USERGUIDE.md +9 -9
- package/docs/de/LICENSE.md +29 -29
- package/docs/de/README.md +35 -31
- package/docs/de/SECURITY.md +25 -25
- package/docs/es/LICENSE.md +29 -29
- package/docs/es/README.md +35 -31
- package/docs/es/SECURITY.md +25 -25
- package/docs/fr/LICENSE.md +29 -29
- package/docs/fr/README.md +35 -31
- package/docs/fr/SECURITY.md +25 -25
- package/docs/hi/LICENSE.md +29 -29
- package/docs/hi/README.md +35 -31
- package/docs/hi/SECURITY.md +25 -25
- package/docs/it/LICENSE.md +26 -26
- package/docs/it/README.md +35 -31
- package/docs/it/SECURITY.md +25 -25
- package/docs/ja/LICENSE.md +29 -29
- package/docs/ja/README.md +35 -31
- package/docs/ja/SECURITY.md +25 -25
- package/docs/ko/LICENSE.md +32 -32
- package/docs/ko/README.md +35 -31
- package/docs/ko/SECURITY.md +25 -25
- package/docs/ne/LICENSE.md +35 -35
- package/docs/ne/README.md +35 -31
- package/docs/ne/SECURITY.md +25 -25
- package/docs/nl/LICENSE.md +29 -29
- package/docs/nl/README.md +35 -31
- package/docs/nl/SECURITY.md +25 -25
- package/docs/pt/LICENSE.md +28 -28
- package/docs/pt/README.md +35 -31
- package/docs/pt/SECURITY.md +25 -25
- package/docs/vi/LICENSE.md +29 -29
- package/docs/vi/README.md +35 -31
- package/docs/vi/SECURITY.md +25 -25
- package/docs/zh-cn/LICENSE.md +29 -29
- package/docs/zh-cn/README.md +35 -32
- package/docs/zh-cn/SECURITY.md +25 -25
- package/docs/zh-tw/LICENSE.md +29 -29
- package/docs/zh-tw/README.md +36 -32
- 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 -2063
- 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 +7 -7
- 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-cn/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
<h6>
|
|
5
|
-
<a href="https://github.com/
|
|
5
|
+
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs">
|
|
6
6
|
<picture>
|
|
7
7
|
<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-padded-icon17x15.svg">
|
|
8
8
|
<img src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-padded-icon17x15.svg">
|
|
@@ -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
|
|
|
@@ -40,18 +42,18 @@
|
|
|
40
42
|
|
|
41
43
|
<div id="shields" align="center">
|
|
42
44
|
|
|
43
|
-
[](https://github.com/KudoAI/chatgpt.js/stargazers)
|
|
44
46
|
[](LICENSE.md)
|
|
45
|
-
[](https://github.com/KudoAI/chatgpt.js/commits/main)
|
|
48
|
+

|
|
49
|
+
[](https://www.codefactor.io/repository/github/kudoai/chatgpt.js)
|
|
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
|
-

|
|
51
53
|
|
|
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
|
-
> **笔记** _使用入门模板: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/
|
|
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
|
// 这里是您的代码
|
|
@@ -119,11 +121,11 @@ function yourCode() {
|
|
|
119
121
|
|
|
120
122
|
### <img style="margin: 0 2px -1px 0" height=16 src="https://www.google.com/chrome/static/images/favicons/apple-icon-60x60.png"> Chrome:
|
|
121
123
|
|
|
122
|
-
> **笔记** _使用入门模板: [kudoai/chatgpt.js-chrome-starter](https://github.com/
|
|
124
|
+
> **笔记** _使用入门模板: [kudoai/chatgpt.js-chrome-starter](https://github.com/KudoAI/chatgpt.js-chrome-starter)_
|
|
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
|
|
|
@@ -186,9 +188,9 @@ chatgpt.get('reply', 'last')
|
|
|
186
188
|
|
|
187
189
|
每个调用都会同样获取最后一个回应。如果您认为它有效,那么它可能就是有效的……所以只需输入它!(谁有时间看文档?)
|
|
188
190
|
|
|
189
|
-
如果没有,请查看扩展的[用户指南](https://github.com/
|
|
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
|
|
|
@@ -264,10 +266,10 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
264
266
|
<p><br>
|
|
265
267
|
|
|
266
268
|
<p id="showcase-cta">
|
|
267
|
-
如果您使用 chatgpt.js 制作了一些想要分享的内容,请发送电子邮件至 <a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> 或打开一个 <a href="https://github.com/
|
|
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 request</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
|
|
|
@@ -300,15 +302,16 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
300
302
|
[](https://github.com/philly88r)
|
|
301
303
|
[](https://github.com/thomasgauthier)
|
|
302
304
|
[](https://github.com/pranav-bhatt)
|
|
305
|
+
[](https://github.com/hopana)
|
|
303
306
|
[](https://github.com/Luwa-Tech)
|
|
304
307
|
[](https://github.com/dependabot)
|
|
305
308
|
[](https://chat.openai.com)
|
|
306
|
-
[](https://poe.com)
|
|
307
310
|
[](https://github.com/ImgBotApp)
|
|
308
311
|
|
|
309
312
|
</div><br>
|
|
310
313
|
|
|
311
|
-
<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">
|
|
312
315
|
|
|
313
316
|
<div id="partners">
|
|
314
317
|
|
|
@@ -321,21 +324,21 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
321
324
|
<div id="partners-collage" align="center">
|
|
322
325
|
|
|
323
326
|
<picture>
|
|
324
|
-
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/
|
|
325
|
-
<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">
|
|
326
329
|
</picture>
|
|
327
330
|
|
|
328
331
|
</div>
|
|
329
332
|
|
|
330
333
|
<br>
|
|
331
334
|
|
|
332
|
-
<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">
|
|
333
336
|
|
|
334
337
|
<div align="center">
|
|
335
338
|
|
|
336
339
|
**[发布](https://www.npmjs.com/package/@kudoai/chatgpt.js?activeTab=versions)** /
|
|
337
|
-
[用户指南](https://github.com/
|
|
338
|
-
[讨论](https://github.com/
|
|
340
|
+
[用户指南](https://github.com/KudoAI/chatgpt.js/blob/main/docs/USERGUIDE.md) /
|
|
341
|
+
[讨论](https://github.com/KudoAI/chatgpt.js/discussions) /
|
|
339
342
|
<a href="#">返回顶部 ↑</a>
|
|
340
343
|
|
|
341
344
|
</div>
|
package/docs/zh-cn/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-tw/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/
|
|
24
|
-
|
|
25
|
-
也欢迎拉取请求,但出于安全原因,请发送电子邮件至 security@
|
|
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-tw/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/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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
<h6>
|
|
5
|
-
<a href="https://github.com/
|
|
5
|
+
<a href="https://github.com/KudoAI/chatgpt.js/tree/main/docs">
|
|
6
6
|
<picture>
|
|
7
7
|
<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-padded-icon17x15.svg">
|
|
8
8
|
<img src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-padded-icon17x15.svg">
|
|
@@ -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,18 +41,19 @@
|
|
|
39
41
|
<br>
|
|
40
42
|
|
|
41
43
|
<div id="shields" align="center">
|
|
42
|
-
|
|
44
|
+
|
|
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)
|
|
50
|
+
[](https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js)
|
|
47
51
|
[](https://github.com/sindresorhus/awesome-chatgpt#javascript)
|
|
48
52
|
[](https://www.producthunt.com/posts/chatgpt-js)
|
|
49
53
|
|
|
50
|
-
|
|
51
54
|
</div>
|
|
52
55
|
|
|
53
|
-
<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">
|
|
54
57
|
|
|
55
58
|
<div id="intro">
|
|
56
59
|
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
- 便於使用
|
|
66
69
|
- 輕量級(但性能最佳)
|
|
67
70
|
|
|
68
|
-
<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">
|
|
69
72
|
|
|
70
73
|
<div id="importing">
|
|
71
74
|
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
|
|
80
83
|
```js
|
|
81
84
|
(async () => {
|
|
82
|
-
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');
|
|
83
86
|
// 你的代碼在這裡...
|
|
84
87
|
})();
|
|
85
88
|
```
|
|
@@ -88,7 +91,7 @@
|
|
|
88
91
|
|
|
89
92
|
```js
|
|
90
93
|
var xhr = new XMLHttpRequest();
|
|
91
|
-
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');
|
|
92
95
|
xhr.onload = function () {
|
|
93
96
|
if (xhr.status === 200) {
|
|
94
97
|
var chatgptJS = document.createElement('script');
|
|
@@ -104,13 +107,13 @@ function yourCode() {
|
|
|
104
107
|
}
|
|
105
108
|
```
|
|
106
109
|
|
|
107
|
-
### <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:
|
|
108
111
|
|
|
109
|
-
> **筆記** _使用入門模板: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/
|
|
112
|
+
> **筆記** _使用入門模板: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/KudoAI/chatgpt.js-greasemonkey-starter)_
|
|
110
113
|
|
|
111
114
|
```js
|
|
112
115
|
...
|
|
113
|
-
// @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
|
|
114
117
|
// ==/UserScript==
|
|
115
118
|
|
|
116
119
|
// 你的代碼在這裡...
|
|
@@ -118,11 +121,11 @@ function yourCode() {
|
|
|
118
121
|
|
|
119
122
|
### <img style="margin: 0 2px -1px 0" height=16 src="https://www.google.com/chrome/static/images/favicons/apple-icon-60x60.png"> Chrome:
|
|
120
123
|
|
|
121
|
-
> **筆記** _使用入門模板: [kudoai/chatgpt.js-chrome-starter](https://github.com/
|
|
124
|
+
> **筆記** _使用入門模板: [kudoai/chatgpt.js-chrome-starter](https://github.com/KudoAI/chatgpt.js-chrome-starter)_
|
|
122
125
|
|
|
123
126
|
由於 Google 不允許遠端程式碼,因此需要在本地導入 chatgpt.js:
|
|
124
127
|
|
|
125
|
-
1. 將 https://raw.githubusercontent.com/
|
|
128
|
+
1. 將 https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/chatgpt.js 保存到子目錄(本例中為 `lib`)
|
|
126
129
|
|
|
127
130
|
2. 將 ES6 導出語句添加到 `lib/chatgpt.js` 的末尾
|
|
128
131
|
```js
|
|
@@ -146,7 +149,7 @@ export { chatgpt }
|
|
|
146
149
|
})();
|
|
147
150
|
```
|
|
148
151
|
|
|
149
|
-
<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">
|
|
150
153
|
|
|
151
154
|
<div id="npm">
|
|
152
155
|
|
|
@@ -164,7 +167,7 @@ npm install @kudoai/chatgpt.js
|
|
|
164
167
|
|
|
165
168
|
</div>
|
|
166
169
|
|
|
167
|
-
<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">
|
|
168
171
|
|
|
169
172
|
<div id="usage">
|
|
170
173
|
|
|
@@ -185,9 +188,9 @@ chatgpt.get('reply', 'last');
|
|
|
185
188
|
|
|
186
189
|
每個調用都會同等地獲取最後一個響應。 如果您認為它有效,它可能會......所以只需輸入它即可!
|
|
187
190
|
|
|
188
|
-
如果沒有,請查看擴展的[用戶指南](https://github.com/
|
|
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) 它將被集成,簡單易行!
|
|
189
192
|
|
|
190
|
-
<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">
|
|
191
194
|
|
|
192
195
|
<div id="showcase">
|
|
193
196
|
|
|
@@ -263,10 +266,10 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
263
266
|
<p><br>
|
|
264
267
|
|
|
265
268
|
<p id="showcase-cta">
|
|
266
|
-
如果您使用 chatgpt.js 製作了一些想要分享的內容,請發送電子郵件至 <a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> 或打開一個 <a href="https://github.com/
|
|
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>!
|
|
267
270
|
</p>
|
|
268
271
|
|
|
269
|
-
<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">
|
|
270
273
|
|
|
271
274
|
<div id="contributors">
|
|
272
275
|
|
|
@@ -299,15 +302,16 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
299
302
|
[](https://github.com/philly88r)
|
|
300
303
|
[](https://github.com/thomasgauthier)
|
|
301
304
|
[](https://github.com/pranav-bhatt)
|
|
305
|
+
[](https://github.com/hopana)
|
|
302
306
|
[](https://github.com/Luwa-Tech)
|
|
303
307
|
[](https://github.com/dependabot)
|
|
304
308
|
[](https://chat.openai.com)
|
|
305
|
-
[](https://poe.com)
|
|
306
310
|
[](https://github.com/ImgBotApp)
|
|
307
311
|
|
|
308
312
|
</div><br>
|
|
309
313
|
|
|
310
|
-
<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">
|
|
311
315
|
|
|
312
316
|
<div id="partners">
|
|
313
317
|
|
|
@@ -320,21 +324,21 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
320
324
|
<div id="partners-collage" align="center">
|
|
321
325
|
|
|
322
326
|
<picture>
|
|
323
|
-
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/
|
|
324
|
-
<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">
|
|
325
329
|
</picture>
|
|
326
330
|
|
|
327
331
|
</div>
|
|
328
332
|
|
|
329
333
|
<br>
|
|
330
334
|
|
|
331
|
-
<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">
|
|
332
336
|
|
|
333
337
|
<div align="center">
|
|
334
338
|
|
|
335
339
|
**[發布](https://www.npmjs.com/package/@kudoai/chatgpt.js?activeTab=versions)** /
|
|
336
|
-
[用戶指南](https://github.com/
|
|
337
|
-
[討論](https://github.com/
|
|
340
|
+
[用戶指南](https://github.com/KudoAI/chatgpt.js/blob/main/docs/USERGUIDE.md) /
|
|
341
|
+
[討論](https://github.com/KudoAI/chatgpt.js/discussions) /
|
|
338
342
|
<a href="#">回到頂部 ↑</a>
|
|
339
343
|
|
|
340
344
|
</div>
|
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/
|
|
24
|
-
|
|
25
|
-
也歡迎拉取請求,但出於安全原因,請發送電子郵件至 security@
|
|
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> 並等待回復後再公開。
|