@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.
Files changed (129) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +26 -24
  3. package/chatgpt.js +2056 -2060
  4. package/dist/chatgpt.min.js +3 -3
  5. package/docs/README.md +26 -24
  6. package/docs/SECURITY.md +25 -25
  7. package/docs/USERGUIDE.md +6 -6
  8. package/docs/de/LICENSE.md +29 -29
  9. package/docs/de/README.md +25 -23
  10. package/docs/de/SECURITY.md +25 -25
  11. package/docs/es/LICENSE.md +29 -29
  12. package/docs/es/README.md +25 -23
  13. package/docs/es/SECURITY.md +25 -25
  14. package/docs/fr/LICENSE.md +29 -29
  15. package/docs/fr/README.md +25 -23
  16. package/docs/fr/SECURITY.md +25 -25
  17. package/docs/hi/LICENSE.md +29 -29
  18. package/docs/hi/README.md +25 -23
  19. package/docs/hi/SECURITY.md +25 -25
  20. package/docs/it/LICENSE.md +26 -26
  21. package/docs/it/README.md +25 -23
  22. package/docs/it/SECURITY.md +25 -25
  23. package/docs/ja/LICENSE.md +29 -29
  24. package/docs/ja/README.md +25 -23
  25. package/docs/ja/SECURITY.md +25 -25
  26. package/docs/ko/LICENSE.md +32 -32
  27. package/docs/ko/README.md +25 -23
  28. package/docs/ko/SECURITY.md +25 -25
  29. package/docs/ne/LICENSE.md +35 -35
  30. package/docs/ne/README.md +25 -23
  31. package/docs/ne/SECURITY.md +25 -25
  32. package/docs/nl/LICENSE.md +29 -29
  33. package/docs/nl/README.md +25 -23
  34. package/docs/nl/SECURITY.md +25 -25
  35. package/docs/pt/LICENSE.md +28 -28
  36. package/docs/pt/README.md +25 -23
  37. package/docs/pt/SECURITY.md +25 -25
  38. package/docs/vi/LICENSE.md +29 -29
  39. package/docs/vi/README.md +25 -23
  40. package/docs/vi/SECURITY.md +25 -25
  41. package/docs/zh-cn/LICENSE.md +29 -29
  42. package/docs/zh-cn/README.md +25 -24
  43. package/docs/zh-cn/SECURITY.md +25 -25
  44. package/docs/zh-tw/LICENSE.md +29 -29
  45. package/docs/zh-tw/README.md +26 -24
  46. package/docs/zh-tw/SECURITY.md +25 -25
  47. package/package.json +73 -73
  48. package/starters/chrome/LICENSE.md +31 -43
  49. package/starters/chrome/docs/README.md +93 -93
  50. package/starters/chrome/docs/SECURITY.md +17 -17
  51. package/starters/chrome/docs/de/LICENSE.md +31 -31
  52. package/starters/chrome/docs/de/README.md +93 -93
  53. package/starters/chrome/docs/es/LICENSE.md +31 -31
  54. package/starters/chrome/docs/es/README.md +93 -93
  55. package/starters/chrome/docs/fr/LICENSE.md +31 -31
  56. package/starters/chrome/docs/fr/README.md +93 -93
  57. package/starters/chrome/docs/hi/LICENSE.md +31 -31
  58. package/starters/chrome/docs/hi/README.md +93 -93
  59. package/starters/chrome/docs/hi/SECURITY.md +17 -17
  60. package/starters/chrome/docs/it/LICENSE.md +29 -29
  61. package/starters/chrome/docs/it/README.md +93 -93
  62. package/starters/chrome/docs/ja/LICENSE.md +31 -31
  63. package/starters/chrome/docs/ja/README.md +93 -93
  64. package/starters/chrome/docs/ko/LICENSE.md +34 -34
  65. package/starters/chrome/docs/ko/README.md +93 -93
  66. package/starters/chrome/docs/nl/LICENSE.md +31 -30
  67. package/starters/chrome/docs/nl/README.md +93 -93
  68. package/starters/chrome/docs/pt/LICENSE.md +31 -31
  69. package/starters/chrome/docs/pt/README.md +93 -93
  70. package/starters/chrome/docs/vi/LICENSE.md +31 -31
  71. package/starters/chrome/docs/vi/README.md +93 -93
  72. package/starters/chrome/docs/zh-cn/LICENSE.md +31 -31
  73. package/starters/chrome/docs/zh-cn/README.md +93 -93
  74. package/starters/chrome/docs/zh-cn/SECURITY.md +17 -17
  75. package/starters/chrome/docs/zh-tw/LICENSE.md +31 -31
  76. package/starters/chrome/docs/zh-tw/README.md +93 -93
  77. package/starters/chrome/extension/background.js +14 -14
  78. package/starters/chrome/extension/content.js +62 -62
  79. package/starters/chrome/extension/lib/chatgpt.js +2057 -2061
  80. package/starters/chrome/extension/lib/settings-utils.js +24 -24
  81. package/starters/chrome/extension/manifest.json +24 -24
  82. package/starters/chrome/extension/popup/index.html +62 -62
  83. package/starters/chrome/extension/popup/popup.js +92 -92
  84. package/starters/chrome/extension/popup/style.css +55 -55
  85. package/starters/docs/LICENSE.md +13 -25
  86. package/starters/docs/README.md +29 -29
  87. package/starters/docs/de/LICENSE.md +13 -13
  88. package/starters/docs/de/README.md +29 -29
  89. package/starters/docs/es/LICENSE.md +13 -13
  90. package/starters/docs/es/README.md +29 -29
  91. package/starters/docs/fr/LICENSE.md +13 -13
  92. package/starters/docs/fr/README.md +29 -29
  93. package/starters/docs/hi/LICENSE.md +13 -13
  94. package/starters/docs/hi/README.md +29 -29
  95. package/starters/docs/it/LICENSE.md +11 -11
  96. package/starters/docs/it/README.md +29 -29
  97. package/starters/docs/ja/LICENSE.md +13 -13
  98. package/starters/docs/ja/README.md +30 -30
  99. package/starters/docs/ko/LICENSE.md +16 -16
  100. package/starters/docs/ko/README.md +29 -29
  101. package/starters/docs/nl/LICENSE.md +13 -13
  102. package/starters/docs/nl/README.md +29 -29
  103. package/starters/docs/pt/LICENSE.md +13 -13
  104. package/starters/docs/pt/README.md +29 -29
  105. package/starters/docs/vi/LICENSE.md +13 -13
  106. package/starters/docs/vi/README.md +29 -29
  107. package/starters/docs/zh-cn/LICENSE.md +13 -13
  108. package/starters/docs/zh-cn/README.md +30 -30
  109. package/starters/docs/zh-tw/LICENSE.md +13 -13
  110. package/starters/docs/zh-tw/README.md +29 -29
  111. package/starters/greasemonkey/LICENSE.md +31 -43
  112. package/starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js +5 -5
  113. package/starters/greasemonkey/docs/README.md +7 -7
  114. package/starters/greasemonkey/docs/SECURITY.md +17 -17
  115. package/starters/greasemonkey/docs/de/LICENSE.md +31 -31
  116. package/starters/greasemonkey/docs/es/LICENSE.md +31 -31
  117. package/starters/greasemonkey/docs/fr/LICENSE.md +31 -31
  118. package/starters/greasemonkey/docs/hi/LICENSE.md +31 -31
  119. package/starters/greasemonkey/docs/hi/SECURITY.md +17 -17
  120. package/starters/greasemonkey/docs/it/LICENSE.md +29 -29
  121. package/starters/greasemonkey/docs/ja/LICENSE.md +31 -31
  122. package/starters/greasemonkey/docs/ko/LICENSE.md +34 -34
  123. package/starters/greasemonkey/docs/nl/LICENSE.md +31 -30
  124. package/starters/greasemonkey/docs/pt/LICENSE.md +31 -31
  125. package/starters/greasemonkey/docs/vi/LICENSE.md +31 -31
  126. package/starters/greasemonkey/docs/zh-cn/LICENSE.md +31 -31
  127. package/starters/greasemonkey/docs/zh-cn/SECURITY.md +17 -17
  128. package/starters/greasemonkey/docs/zh-tw/LICENSE.md +31 -31
  129. package/LICENSE +0 -21
@@ -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/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
- 版權所有 (c) 2023–2024 [KudoAI](https://github.com/KudoAI) & [貢獻者](.#-貢獻者)
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
+ 本軟體『依現況』提供,不提供任何形式的明示或保證暗示的,包括但不限於適銷性保證,適用於特定目的和非侵權。 在任何情況下都不得作者或版權持有人對任何索賠、損害或其他責任,無論是在合約、侵權或其他方面的行為中,由以下原因引起,出於或與軟體或使用或其他交易有關軟體。
@@ -27,10 +27,12 @@
27
27
 
28
28
  <br>
29
29
 
30
- <picture>
31
- <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">
32
- <img width=800 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/lightmode.png">
33
- </picture>
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://img.shields.io/github/stars/KudoAI/chatgpt.js?label=星星&color=af68ff&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/KudoAI/chatgpt.js/stargazers)
43
46
  [![](https://img.shields.io/badge/许可证-MIT-green.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge)](LICENSE.md)
44
- [![](https://img.shields.io/github/commit-activity/m/kudoai/chatgpt.js?label=提交&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/KudoAI/chatgpt.js/commits/main)
45
- ![](https://img.shields.io/github/size/kudoai/chatgpt.js/dist/chatgpt.min.js?label=Minified%20Size&logo=databricks&logoColor=white&labelColor=464646&color=ff69b4&style=for-the-badge)
46
- [![](https://img.shields.io/codacy/grade/696917c8e5a949c49edb89ed2f43d5ba?label=代碼質量&logo=codacy&logoColor=white&labelColor=464646&color=1acc6c&style=for-the-badge)](https://app.codacy.com/gh/KudoAI/chatgpt.js/commits?utm_source=chatgpt%2Ejs&utm_content=github_shield)
47
+ [![](https://img.shields.io/github/commit-activity/m/KudoAI/chatgpt.js?label=提交&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/KudoAI/chatgpt.js/commits/main)
48
+ ![](https://img.shields.io/github/size/KudoAI/chatgpt.js/dist/chatgpt.min.js?label=Minified%20Size&logo=databricks&logoColor=white&labelColor=464646&color=ff69b4&style=for-the-badge)
49
+ [![](https://img.shields.io/codefactor/grade/github/kudoai/chatgpt.js?label=代碼質量&logo=codefactor&logoColor=white&labelColor=464646&color=1acc6c&style=for-the-badge)](https://www.codefactor.io/repository/github/kudoai/chatgpt.js)
47
50
  [![](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fsonarcloud.io%2Fapi%2Fmeasures%2Fcomponent%3Fcomponent%3Dkudoai_chatgpt.js%26metricKeys%3Dvulnerabilities&query=%24.component.measures.0.value&style=for-the-badge&logo=sonarcloud&logoColor=white&labelColor=464646&label=漏洞&color=gold)](https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js)
48
51
  [![](https://img.shields.io/badge/中提到-Awesome-cca8c4?logo=awesomelists&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/sindresorhus/awesome-chatgpt#javascript)
49
52
  [![](https://img.shields.io/badge/精選於-Product_Hunt-ff6154?logo=producthunt&logoColor=white&labelColor=464646&style=for-the-badge)](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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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.7/dist/chatgpt.min.js');
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.7/dist/chatgpt.min.js');
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/kudoai/chatgpt.js/main/starters/media/images/icons/tampermonkey-icon28.png"></picture><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
+ ### <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.7/dist/chatgpt.min.js
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/kudoai/chatgpt.js/main/chatgpt.js 保存到子目錄(本例中為 `lib`)
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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/111466842?first-contrib=2024.2.15-add-en-gb-locale&h=51&w=51&mask=circle&maxage=7d "@Luwa-Tech")](https://github.com/Luwa-Tech)
305
307
  [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/in/29110&h=51&w=51&mask=circle&maxage=7d "Dependabot")](https://github.com/dependabot)
306
308
  [![](https://images.weserv.nl/?url=https://i.imgur.com/tNyIPmG.jpg?h=51&w=51&mask=circle&maxage=7d "ChatGPT")](https://chat.openai.com)
307
- [![](https://images.weserv.nl/?url=https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/icons/poe-icon128.svg?first-contrib=2023.07.27-getandshowreply-method&h=51&w=51&mask=circle&maxage=7d "Poe")](https://poe.com)
309
+ [![](https://images.weserv.nl/?url=https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/poe-icon128.svg?first-contrib=2023.07.27-getandshowreply-method&h=51&w=51&mask=circle&maxage=7d "Poe")](https://poe.com)
308
310
  [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/31427850?h=51&w=51&mask=circle&maxage=7d "@ImgBotApp")](https://github.com/ImgBotApp)
309
311
 
310
312
  </div><br>
311
313
 
312
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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/kudoai/chatgpt.js/main/media/images/logos/partners/collage/white.png">
326
- <img width=888 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/partners/collage/black.png">
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/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
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
 
@@ -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/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> 並等待回復後再公開。
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.7",
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.2.0",
66
- "@adamlui/scss-to-css": "^1.4.0",
67
- "docsify-cli": "^4.4.4",
68
- "eslint": "^8.57.0",
69
- "eslint-plugin-json-schema-validator": "^4.8.3",
70
- "eslint-plugin-yml": "^1.12.2",
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
- &nbsp;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 (c) 2023–2024 [KudoAI](https://github.com/KudoAI) & contributors**
26
-
27
- Permission is hereby granted, free of charge, to any person obtaining a copy
28
- of this software and associated documentation files (the "Software"), to deal
29
- in the Software without restriction, including without limitation the rights
30
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
- copies of the Software, and to permit persons to whom the Software is
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
+ &nbsp;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.