@kudoai/chatgpt.js 2.6.7 → 2.6.9
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 +30 -34
- package/chatgpt.js +2001 -2060
- package/dist/chatgpt.min.js +9 -3
- package/docs/README.md +30 -34
- package/docs/SECURITY.md +25 -25
- package/docs/USERGUIDE.md +6 -65
- 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/extension/background.js +14 -14
- package/starters/chrome/extension/content.js +62 -62
- package/starters/chrome/extension/lib/chatgpt.js +2002 -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/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/LICENSE +0 -21
- package/docs/de/LICENSE.md +0 -29
- package/docs/de/README.md +0 -343
- package/docs/de/SECURITY.md +0 -25
- package/docs/es/LICENSE.md +0 -29
- package/docs/es/README.md +0 -343
- package/docs/es/SECURITY.md +0 -25
- package/docs/fr/LICENSE.md +0 -29
- package/docs/fr/README.md +0 -343
- package/docs/fr/SECURITY.md +0 -25
- package/docs/hi/LICENSE.md +0 -29
- package/docs/hi/README.md +0 -344
- package/docs/hi/SECURITY.md +0 -25
- package/docs/it/LICENSE.md +0 -27
- package/docs/it/README.md +0 -343
- package/docs/it/SECURITY.md +0 -25
- package/docs/ja/LICENSE.md +0 -29
- package/docs/ja/README.md +0 -343
- package/docs/ja/SECURITY.md +0 -25
- package/docs/ko/LICENSE.md +0 -32
- package/docs/ko/README.md +0 -348
- package/docs/ko/SECURITY.md +0 -25
- package/docs/ne/LICENSE.md +0 -35
- package/docs/ne/README.md +0 -344
- package/docs/ne/SECURITY.md +0 -25
- package/docs/nl/LICENSE.md +0 -29
- package/docs/nl/README.md +0 -343
- package/docs/nl/SECURITY.md +0 -25
- package/docs/pt/LICENSE.md +0 -29
- package/docs/pt/README.md +0 -343
- package/docs/pt/SECURITY.md +0 -25
- package/docs/vi/LICENSE.md +0 -29
- package/docs/vi/README.md +0 -343
- package/docs/vi/SECURITY.md +0 -25
- package/docs/zh-cn/LICENSE.md +0 -29
- package/docs/zh-cn/README.md +0 -343
- package/docs/zh-cn/SECURITY.md +0 -25
- package/docs/zh-tw/LICENSE.md +0 -29
- package/docs/zh-tw/README.md +0 -342
- package/docs/zh-tw/SECURITY.md +0 -25
- package/starters/chrome/docs/de/LICENSE.md +0 -31
- package/starters/chrome/docs/de/README.md +0 -93
- package/starters/chrome/docs/es/LICENSE.md +0 -31
- package/starters/chrome/docs/es/README.md +0 -93
- package/starters/chrome/docs/fr/LICENSE.md +0 -31
- package/starters/chrome/docs/fr/README.md +0 -93
- package/starters/chrome/docs/hi/LICENSE.md +0 -31
- package/starters/chrome/docs/hi/README.md +0 -93
- package/starters/chrome/docs/hi/SECURITY.md +0 -17
- package/starters/chrome/docs/it/LICENSE.md +0 -29
- package/starters/chrome/docs/it/README.md +0 -93
- package/starters/chrome/docs/ja/LICENSE.md +0 -31
- package/starters/chrome/docs/ja/README.md +0 -93
- package/starters/chrome/docs/ko/LICENSE.md +0 -34
- package/starters/chrome/docs/ko/README.md +0 -93
- package/starters/chrome/docs/nl/LICENSE.md +0 -30
- package/starters/chrome/docs/nl/README.md +0 -93
- package/starters/chrome/docs/pt/LICENSE.md +0 -31
- package/starters/chrome/docs/pt/README.md +0 -93
- package/starters/chrome/docs/vi/LICENSE.md +0 -31
- package/starters/chrome/docs/vi/README.md +0 -93
- package/starters/chrome/docs/zh-cn/LICENSE.md +0 -31
- package/starters/chrome/docs/zh-cn/README.md +0 -93
- package/starters/chrome/docs/zh-cn/SECURITY.md +0 -17
- package/starters/chrome/docs/zh-tw/LICENSE.md +0 -31
- package/starters/chrome/docs/zh-tw/README.md +0 -93
- package/starters/docs/de/LICENSE.md +0 -13
- package/starters/docs/de/README.md +0 -29
- package/starters/docs/es/LICENSE.md +0 -13
- package/starters/docs/es/README.md +0 -29
- package/starters/docs/fr/LICENSE.md +0 -13
- package/starters/docs/fr/README.md +0 -29
- package/starters/docs/hi/LICENSE.md +0 -13
- package/starters/docs/hi/README.md +0 -29
- package/starters/docs/it/LICENSE.md +0 -11
- package/starters/docs/it/README.md +0 -29
- package/starters/docs/ja/LICENSE.md +0 -13
- package/starters/docs/ja/README.md +0 -30
- package/starters/docs/ko/LICENSE.md +0 -16
- package/starters/docs/ko/README.md +0 -29
- package/starters/docs/nl/LICENSE.md +0 -13
- package/starters/docs/nl/README.md +0 -29
- package/starters/docs/pt/LICENSE.md +0 -13
- package/starters/docs/pt/README.md +0 -29
- package/starters/docs/vi/LICENSE.md +0 -13
- package/starters/docs/vi/README.md +0 -29
- package/starters/docs/zh-cn/LICENSE.md +0 -13
- package/starters/docs/zh-cn/README.md +0 -30
- package/starters/docs/zh-tw/LICENSE.md +0 -13
- package/starters/docs/zh-tw/README.md +0 -29
- package/starters/greasemonkey/docs/de/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/es/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/fr/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/hi/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/hi/SECURITY.md +0 -17
- package/starters/greasemonkey/docs/it/LICENSE.md +0 -29
- package/starters/greasemonkey/docs/ja/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/ko/LICENSE.md +0 -34
- package/starters/greasemonkey/docs/nl/LICENSE.md +0 -30
- package/starters/greasemonkey/docs/pt/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/vi/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/zh-cn/LICENSE.md +0 -31
- package/starters/greasemonkey/docs/zh-cn/SECURITY.md +0 -17
- package/starters/greasemonkey/docs/zh-tw/LICENSE.md +0 -31
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
**Copyright © 2023–2024 [KudoAI](https://github.com/KudoAI) & [contributors](.#-contributors).**
|
|
4
|
+
|
|
5
|
+
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:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
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.
|
package/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
|
### 🤖 A powerful client-side JavaScript library for ChatGPT
|
|
36
38
|
|
|
@@ -41,18 +43,18 @@
|
|
|
41
43
|
<div id="shields" align="center">
|
|
42
44
|
|
|
43
45
|
[](https://github.com/KudoAI/chatgpt.js/stargazers)
|
|
44
|
-
[](https://github.com/KudoAI/chatgpt.js/blob/main/LICENSE)
|
|
45
|
-
[](https://github.com/KudoAI/chatgpt.js/blob/main/LICENSE.md)
|
|
47
|
+
[](https://github.com/KudoAI/chatgpt.js/commits/main)
|
|
48
|
+

|
|
49
|
+
[](https://www.codefactor.io/repository/github/kudoai/chatgpt.js)
|
|
48
50
|
[](https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js)
|
|
49
51
|
[](https://github.com/sindresorhus/awesome-chatgpt#javascript)
|
|
50
52
|
[](https://www.producthunt.com/posts/chatgpt-js)
|
|
51
|
-
|
|
53
|
+

|
|
52
54
|
|
|
53
55
|
</div>
|
|
54
56
|
|
|
55
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
57
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
56
58
|
|
|
57
59
|
<div id="intro">
|
|
58
60
|
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
- Easy-to-use
|
|
68
70
|
- Lightweight (yet optimally performant)
|
|
69
71
|
|
|
70
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
72
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
71
73
|
|
|
72
74
|
<div id="importing">
|
|
73
75
|
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
|
|
82
84
|
```js
|
|
83
85
|
(async () => {
|
|
84
|
-
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.
|
|
86
|
+
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.9/dist/chatgpt.min.js');
|
|
85
87
|
// Your code here...
|
|
86
88
|
})();
|
|
87
89
|
```
|
|
@@ -90,7 +92,7 @@
|
|
|
90
92
|
|
|
91
93
|
```js
|
|
92
94
|
var xhr = new XMLHttpRequest();
|
|
93
|
-
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.
|
|
95
|
+
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.9/dist/chatgpt.min.js');
|
|
94
96
|
xhr.onload = function () {
|
|
95
97
|
if (xhr.status === 200) {
|
|
96
98
|
var chatgptJS = document.createElement('script');
|
|
@@ -106,13 +108,13 @@ function yourCode() {
|
|
|
106
108
|
}
|
|
107
109
|
```
|
|
108
110
|
|
|
109
|
-
### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://raw.githubusercontent.com/
|
|
111
|
+
### <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:
|
|
110
112
|
|
|
111
113
|
> **Note** _To use a starter template: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/KudoAI/chatgpt.js-greasemonkey-starter)_
|
|
112
114
|
|
|
113
115
|
```js
|
|
114
116
|
...
|
|
115
|
-
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.
|
|
117
|
+
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.9/dist/chatgpt.min.js
|
|
116
118
|
// ==/UserScript==
|
|
117
119
|
|
|
118
120
|
// Your code here...
|
|
@@ -124,7 +126,7 @@ function yourCode() {
|
|
|
124
126
|
|
|
125
127
|
Since Google does not allow remote code, importing chatgpt.js locally is required:
|
|
126
128
|
|
|
127
|
-
1. Save https://raw.githubusercontent.com/
|
|
129
|
+
1. Save https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/chatgpt.js to a subdirectory (`lib` in this example)
|
|
128
130
|
|
|
129
131
|
2. Add ES6 export statement to end of `lib/chatgpt.js`
|
|
130
132
|
```js
|
|
@@ -148,7 +150,7 @@ export { chatgpt }
|
|
|
148
150
|
})();
|
|
149
151
|
```
|
|
150
152
|
|
|
151
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
153
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
152
154
|
|
|
153
155
|
<div id="npm">
|
|
154
156
|
|
|
@@ -166,7 +168,7 @@ After installation, navigate to `node_modules/@kudoai/chatgpt.js` to find the li
|
|
|
166
168
|
|
|
167
169
|
</div>
|
|
168
170
|
|
|
169
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
171
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
170
172
|
|
|
171
173
|
<div id="usage">
|
|
172
174
|
|
|
@@ -189,7 +191,7 @@ Each call equally fetches the last response. If you think it works, it probably
|
|
|
189
191
|
|
|
190
192
|
If it didn't, check out the extended [userguide](https://github.com/KudoAI/chatgpt.js/blob/main/docs/USERGUIDE.md), or simply submit an [issue](https://github.com/KudoAI/chatgpt.js/issues) or [PR](https://github.com/KudoAI/chatgpt.js/pulls) and it will be integrated, ezpz!
|
|
191
193
|
|
|
192
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
194
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
193
195
|
|
|
194
196
|
<div id="showcase">
|
|
195
197
|
|
|
@@ -208,13 +210,6 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
208
210
|
[Readme](https://github.com/adamlui/autoclear-chatgpt-history#readme) /
|
|
209
211
|
[Discuss](https://autoclearchatgpt.com/discuss)
|
|
210
212
|
|
|
211
|
-
### <img width=16 src="https://i.imgur.com/1yjmK3W.png"> [Automatic ChatGPT DAN](https://github.com/madkarmaa/automatic-chatgpt-dan)
|
|
212
|
-
|
|
213
|
-
> Automatically send DAN prompts to ChatGPT.
|
|
214
|
-
<br>[Install](https://github.com/madkarmaa/automatic-chatgpt-dan#%EF%B8%8F-installation) /
|
|
215
|
-
[Readme](https://github.com/madkarmaa/automatic-chatgpt-dan#readme) /
|
|
216
|
-
[Discuss](https://github.com/madkarmaa/automatic-chatgpt-dan/issues)
|
|
217
|
-
|
|
218
213
|
### <img src="https://media.bravegpt.com/images/icons/bravegpt/icon48.png" width=18> [BraveGPT](https://bravegpt.com) <a href="https://www.producthunt.com/posts/bravegpt?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-bravegpt" target="_blank" rel="noopener"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=385630&theme=light" style="width: 112px; height: 24px; margin:0 0 -4px 5px;" width="112" height="24" /></a>
|
|
219
214
|
|
|
220
215
|
> Display ChatGPT answers in Brave Search sidebar (powered by GPT-4!)
|
|
@@ -268,7 +263,7 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
268
263
|
If you've made something w/ chatgpt.js you want to share, email <a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> or just open a <a href="https://github.com/KudoAI/chatgpt.js/pulls" target="_blank" rel="noopener">pull request</a>!
|
|
269
264
|
</p>
|
|
270
265
|
|
|
271
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
266
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
272
267
|
|
|
273
268
|
<div id="contributors">
|
|
274
269
|
|
|
@@ -301,16 +296,17 @@ This library exists thanks to code, translations, issues & ideas from the follow
|
|
|
301
296
|
[](https://github.com/philly88r)
|
|
302
297
|
[](https://github.com/thomasgauthier)
|
|
303
298
|
[](https://github.com/pranav-bhatt)
|
|
304
|
-
[](https://github.com/hopana)
|
|
300
|
+
[](https://github.com/emtry)
|
|
305
301
|
[](https://github.com/Luwa-Tech)
|
|
306
302
|
[](https://github.com/dependabot)
|
|
307
303
|
[](https://chat.openai.com)
|
|
308
|
-
[](https://poe.com)
|
|
309
305
|
[](https://github.com/ImgBotApp)
|
|
310
306
|
|
|
311
307
|
</div><br>
|
|
312
308
|
|
|
313
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
309
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
314
310
|
|
|
315
311
|
<div id="partners">
|
|
316
312
|
|
|
@@ -323,21 +319,21 @@ This library exists thanks to code, translations, issues & ideas from the follow
|
|
|
323
319
|
<div id="partners-collage" align="center">
|
|
324
320
|
|
|
325
321
|
<picture>
|
|
326
|
-
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/
|
|
327
|
-
<img width=888 src="https://raw.githubusercontent.com/
|
|
322
|
+
<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">
|
|
323
|
+
<img width=888 src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/logos/partners/collage/black.png">
|
|
328
324
|
</picture>
|
|
329
325
|
|
|
330
326
|
</div>
|
|
331
327
|
|
|
332
328
|
<br>
|
|
333
329
|
|
|
334
|
-
<img height=8px width="100%" src="https://raw.githubusercontent.com/
|
|
330
|
+
<img height=8px width="100%" src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/docs/assets/images/aqua-separator.png">
|
|
335
331
|
|
|
336
332
|
<div align="center">
|
|
337
333
|
|
|
338
334
|
**[Releases](https://www.npmjs.com/package/@kudoai/chatgpt.js?activeTab=versions)** /
|
|
339
335
|
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/main/docs/USERGUIDE.md) /
|
|
340
336
|
[Discuss](https://github.com/KudoAI/chatgpt.js/discussions) /
|
|
341
|
-
<a href="
|
|
337
|
+
<a href="#--------------------------------------------------------------------------------english---------简体中文---------繁體中文---------日本---------한국인---------हिंदी---------नेपाली---------deutsch---------español---------français---------italiano---------nederlands---------português---------việt----">Back to top ↑</a>
|
|
342
338
|
|
|
343
339
|
</div>
|