pake-cli 2.0.7-beta2 โ†’ 2.0.7

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/dist/cli.js CHANGED
@@ -2547,7 +2547,7 @@ class BuilderFactory {
2547
2547
  }
2548
2548
 
2549
2549
  var name = "pake-cli";
2550
- var version = "2.0.7-beta2";
2550
+ var version = "2.0.7";
2551
2551
  var description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚";
2552
2552
  var engines = {
2553
2553
  node: ">=16.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "2.0.7-beta2",
3
+ "version": "2.0.7",
4
4
  "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
@@ -146,4 +146,36 @@ document.addEventListener('DOMContentLoaded', () => {
146
146
  }
147
147
 
148
148
  window.pakeToast = pakeToast;
149
+
150
+ // chatgpt supports unlimited times of GPT4-Mobile
151
+ if (window.location.hostname === 'chat.openai.com') {
152
+ const originFetch = fetch;
153
+ window.fetch = (url, options) => {
154
+ return originFetch(url, options).then(async (response) => {
155
+ if (url.indexOf('/backend-api/models') === -1) {
156
+ return response;
157
+ }
158
+ const responseClone = response.clone();
159
+ let res = await responseClone.json();
160
+ res.models = res.models.map((m) => {
161
+ m.tags = m.tags.filter((t) => {
162
+ return t !== 'mobile';
163
+ });
164
+ if (m.slug === 'gpt-4-mobile') {
165
+ res.categories.push({
166
+ browsing_model: null,
167
+ category: 'gpt_4',
168
+ code_interpreter_model: null,
169
+ default_model: 'gpt-4-mobile',
170
+ human_category_name: 'GPT-4-Mobile',
171
+ plugins_model: null,
172
+ subscription_level: 'plus',
173
+ });
174
+ }
175
+ return m;
176
+ });
177
+ return new Response(JSON.stringify(res), response);
178
+ });
179
+ };
180
+ }
149
181
  });