zerochat 7.3.0__py3-none-any.whl

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 (130) hide show
  1. zerochat-7.3.0.dist-info/METADATA +70 -0
  2. zerochat-7.3.0.dist-info/RECORD +130 -0
  3. zerochat-7.3.0.dist-info/WHEEL +5 -0
  4. zerochat-7.3.0.dist-info/entry_points.txt +2 -0
  5. zerochat-7.3.0.dist-info/licenses/LICENSE +34 -0
  6. zerochat-7.3.0.dist-info/top_level.txt +2 -0
  7. zerochat.py +2004 -0
  8. zerochat_runtime/__init__.py +1 -0
  9. zerochat_runtime/assets/css/base.css +199 -0
  10. zerochat_runtime/assets/css/components/composer.css +1258 -0
  11. zerochat_runtime/assets/css/components/debug.css +777 -0
  12. zerochat_runtime/assets/css/components/header.css +97 -0
  13. zerochat_runtime/assets/css/components/icons.css +39 -0
  14. zerochat_runtime/assets/css/components/markdown.css +685 -0
  15. zerochat_runtime/assets/css/components/messages.css +473 -0
  16. zerochat_runtime/assets/css/components/modals.css +1319 -0
  17. zerochat_runtime/assets/css/components/sidebar.css +622 -0
  18. zerochat_runtime/assets/css/components/tools.css +1223 -0
  19. zerochat_runtime/assets/css/layout.css +171 -0
  20. zerochat_runtime/assets/css/print.css +120 -0
  21. zerochat_runtime/assets/css/styles.css +18 -0
  22. zerochat_runtime/assets/css/theme-overrides.css +555 -0
  23. zerochat_runtime/assets/css/tokens.css +165 -0
  24. zerochat_runtime/assets/help/architecture.html +247 -0
  25. zerochat_runtime/assets/help/composer.html +134 -0
  26. zerochat_runtime/assets/help/conversations.html +105 -0
  27. zerochat_runtime/assets/help/debug.html +108 -0
  28. zerochat_runtime/assets/help/en/architecture.html +247 -0
  29. zerochat_runtime/assets/help/en/composer.html +134 -0
  30. zerochat_runtime/assets/help/en/conversations.html +104 -0
  31. zerochat_runtime/assets/help/en/debug.html +105 -0
  32. zerochat_runtime/assets/help/en/gemini-free.html +39 -0
  33. zerochat_runtime/assets/help/en/index.html +191 -0
  34. zerochat_runtime/assets/help/en/learning.html +71 -0
  35. zerochat_runtime/assets/help/en/mcp.html +143 -0
  36. zerochat_runtime/assets/help/en/openrouter-free.html +39 -0
  37. zerochat_runtime/assets/help/en/profiles.html +173 -0
  38. zerochat_runtime/assets/help/en/rag.html +130 -0
  39. zerochat_runtime/assets/help/en/reasoning-telemetry.html +108 -0
  40. zerochat_runtime/assets/help/en/tools-agent.html +133 -0
  41. zerochat_runtime/assets/help/en/webllm.html +355 -0
  42. zerochat_runtime/assets/help/gemini-free.html +39 -0
  43. zerochat_runtime/assets/help/help.css +604 -0
  44. zerochat_runtime/assets/help/help.js +51 -0
  45. zerochat_runtime/assets/help/index.html +194 -0
  46. zerochat_runtime/assets/help/learning.html +71 -0
  47. zerochat_runtime/assets/help/mcp.html +143 -0
  48. zerochat_runtime/assets/help/openrouter-free.html +39 -0
  49. zerochat_runtime/assets/help/profiles.html +174 -0
  50. zerochat_runtime/assets/help/rag.html +130 -0
  51. zerochat_runtime/assets/help/reasoning-telemetry.html +111 -0
  52. zerochat_runtime/assets/help/tools-agent.html +133 -0
  53. zerochat_runtime/assets/help/webllm.html +359 -0
  54. zerochat_runtime/assets/js/agent-core.js +1553 -0
  55. zerochat_runtime/assets/js/api.js +844 -0
  56. zerochat_runtime/assets/js/app.js +2558 -0
  57. zerochat_runtime/assets/js/attachments.js +220 -0
  58. zerochat_runtime/assets/js/charts.js +338 -0
  59. zerochat_runtime/assets/js/chat-engine.js +566 -0
  60. zerochat_runtime/assets/js/config-store.js +207 -0
  61. zerochat_runtime/assets/js/context-manager.js +584 -0
  62. zerochat_runtime/assets/js/conversation-service.js +484 -0
  63. zerochat_runtime/assets/js/cookies.js +688 -0
  64. zerochat_runtime/assets/js/data-reset-service.js +136 -0
  65. zerochat_runtime/assets/js/debug.js +508 -0
  66. zerochat_runtime/assets/js/defaults.js +16 -0
  67. zerochat_runtime/assets/js/export.js +179 -0
  68. zerochat_runtime/assets/js/file-parser.js +2088 -0
  69. zerochat_runtime/assets/js/generation-controller.js +417 -0
  70. zerochat_runtime/assets/js/i18n.js +1483 -0
  71. zerochat_runtime/assets/js/icons.js +156 -0
  72. zerochat_runtime/assets/js/ingestionEngine.js +436 -0
  73. zerochat_runtime/assets/js/markdown.js +588 -0
  74. zerochat_runtime/assets/js/mcp.js +1271 -0
  75. zerochat_runtime/assets/js/message-turns.js +62 -0
  76. zerochat_runtime/assets/js/profile-backup.js +118 -0
  77. zerochat_runtime/assets/js/profile-export-bundle.js +481 -0
  78. zerochat_runtime/assets/js/profile-repository.js +213 -0
  79. zerochat_runtime/assets/js/providers-webllm.js +486 -0
  80. zerochat_runtime/assets/js/providers.js +1560 -0
  81. zerochat_runtime/assets/js/rag-index.js +295 -0
  82. zerochat_runtime/assets/js/rag-service.js +530 -0
  83. zerochat_runtime/assets/js/rag-ui.js +997 -0
  84. zerochat_runtime/assets/js/ragStorage.js +676 -0
  85. zerochat_runtime/assets/js/sandbox.js +449 -0
  86. zerochat_runtime/assets/js/state.js +704 -0
  87. zerochat_runtime/assets/js/storage-db.js +144 -0
  88. zerochat_runtime/assets/js/tool-cards.js +330 -0
  89. zerochat_runtime/assets/js/tool-security.js +653 -0
  90. zerochat_runtime/assets/js/tools/README.md +50 -0
  91. zerochat_runtime/assets/js/tools/builtin/agent-checkpoint.tool.js +212 -0
  92. zerochat_runtime/assets/js/tools/builtin/download-pdf.tool.js +111 -0
  93. zerochat_runtime/assets/js/tools/builtin/execute-javascript.tool.js +219 -0
  94. zerochat_runtime/assets/js/tools/builtin/fetch-web-page.tool.js +112 -0
  95. zerochat_runtime/assets/js/tools/builtin/list-documents.tool.js +117 -0
  96. zerochat_runtime/assets/js/tools/builtin/read-knowledge-chunk.tool.js +129 -0
  97. zerochat_runtime/assets/js/tools/builtin/read-knowledge-image.tool.js +95 -0
  98. zerochat_runtime/assets/js/tools/builtin/render-chart.tool.js +90 -0
  99. zerochat_runtime/assets/js/tools/builtin/search-knowledge-base.tool.js +124 -0
  100. zerochat_runtime/assets/js/tools/builtin/search-web.tool.js +125 -0
  101. zerochat_runtime/assets/js/tools/tool-manifest.js +53 -0
  102. zerochat_runtime/assets/js/tools/tool-runtime.js +77 -0
  103. zerochat_runtime/assets/js/ui-composer.js +319 -0
  104. zerochat_runtime/assets/js/ui-conversation.js +655 -0
  105. zerochat_runtime/assets/js/ui-dialogs.js +132 -0
  106. zerochat_runtime/assets/js/ui-generation-status.js +119 -0
  107. zerochat_runtime/assets/js/ui-inspector.js +804 -0
  108. zerochat_runtime/assets/js/ui-mcp.js +604 -0
  109. zerochat_runtime/assets/js/ui-profiles.js +824 -0
  110. zerochat_runtime/assets/js/ui-reasoning.js +146 -0
  111. zerochat_runtime/assets/js/ui-settings.js +825 -0
  112. zerochat_runtime/assets/js/ui-shell.js +215 -0
  113. zerochat_runtime/assets/js/ui-sidebar.js +429 -0
  114. zerochat_runtime/assets/js/ui-telemetry.js +404 -0
  115. zerochat_runtime/assets/js/ui-transfer.js +262 -0
  116. zerochat_runtime/assets/js/utils.js +216 -0
  117. zerochat_runtime/assets/js/vendor/orama.browser.js +11 -0
  118. zerochat_runtime/assets/js/web-browser.js +569 -0
  119. zerochat_runtime/assets/js/web-search.js +519 -0
  120. zerochat_runtime/assets/manifest.webmanifest +20 -0
  121. zerochat_runtime/assets/services/dummy_mcp/dummy_mcp_server.py +47 -0
  122. zerochat_runtime/assets/services/dummy_mcp/service.json +22 -0
  123. zerochat_runtime/assets/services/lsp/installer.json +9 -0
  124. zerochat_runtime/assets/services/lsp/service.json +22 -0
  125. zerochat_runtime/assets/services/memory/installer.json +9 -0
  126. zerochat_runtime/assets/services/memory/service.json +24 -0
  127. zerochat_runtime/assets/services/playwright/installer.json +10 -0
  128. zerochat_runtime/assets/services/playwright/service.json +39 -0
  129. zerochat_runtime/assets/sw.js +164 -0
  130. zerochat_runtime/assets/zerochat.html +671 -0
@@ -0,0 +1,355 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>WebLLM & WebGPU Setup Guide · ZeroChat Help</title>
7
+ <meta name="description" content="Technical guide for running local AI models directly in the browser using WebLLM and WebGPU in ZeroChat.">
8
+ <link rel="stylesheet" href="../help.css">
9
+ <style>
10
+ .browser-grid {
11
+ display: grid;
12
+ grid-template-columns: 1fr;
13
+ gap: 1.5rem;
14
+ }
15
+ @media (min-width: 768px) {
16
+ .browser-grid {
17
+ grid-template-columns: 1fr 1fr;
18
+ }
19
+ }
20
+ .spec-table {
21
+ width: 100%;
22
+ border-collapse: collapse;
23
+ margin: 1rem 0;
24
+ font-size: 0.9rem;
25
+ }
26
+ .spec-table th, .spec-table td {
27
+ border: 1px solid var(--border-color);
28
+ padding: 0.6rem 0.85rem;
29
+ text-align: left;
30
+ }
31
+ .spec-table th {
32
+ background: var(--bg-card-subtle);
33
+ font-weight: 600;
34
+ }
35
+ .icon-inline {
36
+ display: inline-block;
37
+ vertical-align: -0.15em;
38
+ width: 1.1em;
39
+ height: 1.1em;
40
+ stroke-width: 2;
41
+ stroke: currentColor;
42
+ fill: none;
43
+ }
44
+ </style>
45
+ </head>
46
+ <body>
47
+ <div class="container">
48
+ <header>
49
+ <div class="header-top">
50
+ <a href="index.html" class="logo-badge">
51
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 17l6-6-6-6M12 19h8"/></svg>
52
+ ZeroChat Docs
53
+ </a>
54
+ <div class="header-actions">
55
+ <a href="../webllm.html" class="top-nav-link">Español 🌐</a>
56
+ <a href="index.html" class="top-nav-link">← Back to Index</a>
57
+ </div>
58
+ </div>
59
+ <h1>WebLLM & WebGPU Configuration</h1>
60
+ <p class="subtitle">Step-by-step setup guide for running AI models directly on your hardware GPU inside the browser.</p>
61
+ </header>
62
+
63
+ <div class="card">
64
+ <h2>What is WebLLM and what are its advantages?</h2>
65
+ <p>
66
+ <strong>WebLLM</strong> is a cutting-edge engine that executes Large Language Models entirely inside the web browser utilizing your graphics card (GPU) through the standardized <strong>WebGPU</strong> API.
67
+ </p>
68
+ <ul>
69
+ <li><strong>Complete privacy:</strong> Prompts and responses never leave your device; there is zero telemetry or intermediary servers.</li>
70
+ <li><strong>Zero cost or subscription:</strong> Requires no paid API keys or cloud server infrastructure.</li>
71
+ <li><strong>Offline functionality:</strong> Once a model is downloaded into your browser's persistent Cache Storage, it runs even without internet access.</li>
72
+ </ul>
73
+ </div>
74
+
75
+ <div class="card">
76
+ <h2>Hardware Requirements & VRAM Guidelines</h2>
77
+ <p>WebGPU performance depends on available GPU video memory (VRAM):</p>
78
+ <table class="spec-table">
79
+ <thead>
80
+ <tr>
81
+ <th>Model Parameter Size</th>
82
+ <th>Recommended VRAM</th>
83
+ <th>Sample Models in Catalog</th>
84
+ </tr>
85
+ </thead>
86
+ <tbody>
87
+ <tr>
88
+ <td><strong>0.5B – 1.5B (Lightweight)</strong></td>
89
+ <td>1.5 GB – 2.5 GB</td>
90
+ <td>Qwen2.5-0.5B, SmolLM2-1.7B, Qwen2.5-1.5B</td>
91
+ </tr>
92
+ <tr>
93
+ <td><strong>3B – 4B (Balanced)</strong></td>
94
+ <td>3 GB – 4.5 GB</td>
95
+ <td>Llama-3.2-3B, Phi-3.5-mini</td>
96
+ </tr>
97
+ <tr>
98
+ <td><strong>7B – 8B (High Quality)</strong></td>
99
+ <td>6 GB – 8 GB</td>
100
+ <td>Llama-3.1-8B-Instruct, Mistral-7B-Instruct</td>
101
+ </tr>
102
+ </tbody>
103
+ </table>
104
+ </div>
105
+
106
+ <h2>Browser Configuration &amp; WebGPU Setup</h2>
107
+ <div class="browser-grid">
108
+
109
+ <!-- Google Chrome / Edge / Brave -->
110
+ <div class="card">
111
+ <h3>Google Chrome, Edge and Chromium</h3>
112
+ <p>Chromium-based browsers provide top-tier performance and reliability with WebGPU.</p>
113
+
114
+ <ol>
115
+ <li>
116
+ <strong>Enable hardware acceleration:</strong>
117
+ <p>Go to Settings &gt; System and ensure <em>"Use hardware acceleration when available"</em> is enabled.</p>
118
+ <div class="code-box">
119
+ <code>chrome://settings/system</code>
120
+ <button class="btn-copy" onclick="copyText('chrome://settings/system', this)">Copy</button>
121
+ </div>
122
+ </li>
123
+
124
+ <li>
125
+ <strong>Enable unsafe WebGPU (Recommended for maximum compatibility):</strong>
126
+ <p>Paste into your address bar, set the flag to <strong>Enabled</strong>, and relaunch your browser:</p>
127
+ <div class="code-box">
128
+ <code>chrome://flags/#enable-unsafe-webgpu</code>
129
+ <button class="btn-copy" onclick="copyText('chrome://flags/#enable-unsafe-webgpu', this)">Copy</button>
130
+ </div>
131
+ </li>
132
+
133
+ <li>
134
+ <strong>WebGPU Interoperability on Linux (Recommended for Linux and Wayland):</strong>
135
+ <p>On Linux (especially when running Wayland or dedicated NVIDIA/AMD GPUs), enable this setting to connect WebGPU compute directly to the browser window without overloading the CPU:</p>
136
+ <div class="code-box">
137
+ <code>chrome://flags/#force-enable-webgpu-interop</code>
138
+ <button class="btn-copy" onclick="copyText('chrome://flags/#force-enable-webgpu-interop', this)">Copy</button>
139
+ </div>
140
+ </li>
141
+
142
+ <li>
143
+ <strong>Check GPU diagnostics:</strong>
144
+ <p>Open the internal graphics status page and verify that <em>WebGPU</em> is listed as <em>"Hardware accelerated"</em>:</p>
145
+ <div class="code-box">
146
+ <code>chrome://gpu</code>
147
+ <button class="btn-copy" onclick="copyText('chrome://gpu', this)">Copy</button>
148
+ </div>
149
+ </li>
150
+ </ol>
151
+ </div>
152
+
153
+ <!-- Mozilla Firefox -->
154
+ <div class="card">
155
+ <h3>Mozilla Firefox</h3>
156
+ <p>WebGPU is in active rollout in Firefox and requires enabling specific preferences:</p>
157
+
158
+ <ol>
159
+ <li>
160
+ <strong>Open the advanced preferences editor:</strong>
161
+ <p>Type into the address bar and click <em>"Accept the Risk and Continue"</em>:</p>
162
+ <div class="code-box">
163
+ <code>about:config</code>
164
+ <button class="btn-copy" onclick="copyText('about:config', this)">Copy</button>
165
+ </div>
166
+ </li>
167
+
168
+ <li>
169
+ <strong>Enable the WebGPU API:</strong>
170
+ <p>Search for this preference and toggle its value to <strong>true</strong>:</p>
171
+ <div class="code-box">
172
+ <code>dom.webgpu.enabled</code>
173
+ <button class="btn-copy" onclick="copyText('dom.webgpu.enabled', this)">Copy</button>
174
+ </div>
175
+ </li>
176
+
177
+ <li>
178
+ <strong>Ignore driver blocklist (Recommended on Linux/Windows):</strong>
179
+ <p>Allows Firefox to use WebGPU even if your driver is not yet on the official whitelist:</p>
180
+ <div class="code-box">
181
+ <code>gfx.webgpu.ignore-status</code>
182
+ <button class="btn-copy" onclick="copyText('gfx.webgpu.ignore-status', this)">Copy</button>
183
+ </div>
184
+ </li>
185
+
186
+ <li>
187
+ <strong>Check Firefox GPU status:</strong>
188
+ <p>Review the <em>Graphics &gt; WebGPU</em> section to confirm hardware adapter detection:</p>
189
+ <div class="code-box">
190
+ <code>about:support</code>
191
+ <button class="btn-copy" onclick="copyText('about:support', this)">Copy</button>
192
+ </div>
193
+ </li>
194
+ </ol>
195
+ </div>
196
+
197
+ </div>
198
+
199
+ <div class="card">
200
+ <h2>How to Use WebLLM in ZeroChat</h2>
201
+ <ol>
202
+ <li>In ZeroChat, open the <strong>Profile Management</strong> dialog.</li>
203
+ <li>Select the <strong>WebLLM (local WebGPU)</strong> interface type.</li>
204
+ <li>
205
+ <strong>If you already have downloaded models:</strong>
206
+ They appear automatically at the top of the model dropdown. Pick any downloaded model and save the profile immediately without needing to click <em>Query</em>.
207
+ </li>
208
+ <li>
209
+ <strong>To download a new model:</strong>
210
+ Click the <strong>Query</strong> button. Browse the available catalog with required VRAM metrics, click the download icon next to your desired model, and wait for shader compilation to finish.
211
+ </li>
212
+ <li>
213
+ Once download completes, the model will be tagged as <em>"Cached"</em> and stored permanently in your browser.
214
+ </li>
215
+ </ol>
216
+ </div>
217
+
218
+ <div class="card">
219
+ <h2>Advanced WebGPU Execution Parameters</h2>
220
+ <p>
221
+ When configuring a profile with the <strong>WebLLM</strong> provider, next to the model selector you will find a gear icon button that reveals the advanced performance panel. These dropdown selectors allow you to fine-tune VRAM usage and inference speed according to your GPU capabilities:
222
+ </p>
223
+ <ul>
224
+ <li>
225
+ <strong>Context window (<code>context_window_size</code>):</strong> Dropdown selector for the maximum token capacity in the KV Cache (e.g., 2048, 4096, 8192, 16384, 32768). By default, browser builds often limit this to 2048 or 4096 to prevent out-of-memory errors on integrated or mobile GPUs. If your GPU has ample VRAM, increasing this retains longer conversations and large documents without truncation.
226
+ </li>
227
+ <li>
228
+ <strong>Prefill chunk size (<code>prefill_chunk_size</code>):</strong> Dropdown selector for the number of tokens processed concurrently by the GPU during prompt evaluation (512, 1024, 2048, 4096). Higher values take full advantage of dedicated GPUs, reducing time to first token (TTFT).
229
+ </li>
230
+ </ul>
231
+ <p>
232
+ The first choice in each dropdown is <em>"Model default"</em> (<code>default</code>), instructing ZeroChat to preserve the model's standard default configuration. These settings are stored as part of the connection profile.
233
+ </p>
234
+ </div>
235
+
236
+ <div class="card">
237
+ <h2>How to Revert Changes and Restore Default Configuration</h2>
238
+ <p>
239
+ If you wish to undo the technical changes made to your browser or ZeroChat and return to factory defaults, follow the instructions below:
240
+ </p>
241
+
242
+ <h3>1. Google Chrome, Microsoft Edge, and Chromium</h3>
243
+ <ul>
244
+ <li>
245
+ <strong>Restore the specific WebGPU flag:</strong>
246
+ <p>Navigate back to the flag URL and select <strong>Default</strong> from the dropdown menu:</p>
247
+ <div class="code-box">
248
+ <code>chrome://flags/#enable-unsafe-webgpu</code>
249
+ <button class="btn-copy" onclick="copyText('chrome://flags/#enable-unsafe-webgpu', this)">Copy</button>
250
+ </div>
251
+ <p>Click the <strong>Relaunch</strong> button that appears at the bottom of the screen to restart the browser with default settings.</p>
252
+ </li>
253
+ <li>
254
+ <strong>Reset all experimental flags:</strong>
255
+ <p>If you adjusted multiple parameters and want to return everything to out-of-the-box defaults, open the main flags page and click the <strong>"Reset all"</strong> button in the upper-right corner:</p>
256
+ <div class="code-box">
257
+ <code>chrome://flags</code>
258
+ <button class="btn-copy" onclick="copyText('chrome://flags', this)">Copy</button>
259
+ </div>
260
+ </li>
261
+ <li>
262
+ <strong>Hardware Acceleration:</strong>
263
+ <p>In <code>chrome://settings/system</code>, you can toggle <em>"Use hardware acceleration when available"</em> according to your standard preference.</p>
264
+ </li>
265
+ </ul>
266
+
267
+ <h3>2. Mozilla Firefox</h3>
268
+ <ul>
269
+ <li>
270
+ <strong>Open advanced configuration:</strong>
271
+ <p>Type into your address bar and accept the warning:</p>
272
+ <div class="code-box">
273
+ <code>about:config</code>
274
+ <button class="btn-copy" onclick="copyText('about:config', this)">Copy</button>
275
+ </div>
276
+ </li>
277
+ <li>
278
+ <strong>Reset modified preferences:</strong>
279
+ <p>Search for each modified preference (they will be displayed in <strong>bold</strong>, indicating a custom non-default value):</p>
280
+ <ul>
281
+ <li><code>dom.webgpu.enabled</code> (factory default: <strong>false</strong>)</li>
282
+ <li><code>gfx.webgpu.ignore-status</code> (factory default: <strong>false</strong> or non-existent)</li>
283
+ </ul>
284
+ <p>Click the <strong>Reset</strong> button (the curved back-arrow icon at the right edge of the row) or double-click the row so it returns to <code>false</code> and is no longer bold.</p>
285
+ </li>
286
+ <li>
287
+ <strong>Restart the browser:</strong>
288
+ <p>Close and restart Firefox so that graphics and GPU subsystems reinitialize under default parameters.</p>
289
+ </li>
290
+ </ul>
291
+
292
+ <h3>3. Freeing Disk Space (Deleting Downloaded Models from Cache)</h3>
293
+ <p>
294
+ Local WebLLM models are stored in the browser's persistent storage (<em>Cache Storage</em> / <em>IndexedDB</em>) and can take up several gigabytes. If you want to delete them to reclaim disk space:
295
+ </p>
296
+ <ul>
297
+ <li>
298
+ <strong>In Google Chrome, Edge, and Chromium:</strong>
299
+ <ol>
300
+ <li>Click the tune/padlock site settings icon to the left of the address bar while visiting ZeroChat.</li>
301
+ <li>Select <em>"Site settings"</em> and click <strong>"Clear data"</strong>.</li>
302
+ <li>Alternatively, press <kbd>F12</kbd> &gt; <strong>Application</strong> tab &gt; <strong>Storage</strong> section &gt; click <strong>"Clear site data"</strong>.</li>
303
+ </ol>
304
+ </li>
305
+ <li>
306
+ <strong>In Mozilla Firefox:</strong>
307
+ <ol>
308
+ <li>Open Settings &gt; <em>Privacy &amp; Security</em> section &gt; <em>Cookies and Site Data</em>.</li>
309
+ <li>Click <strong>"Manage Data..."</strong>, search for the ZeroChat domain, and click <strong>"Remove Selected"</strong>.</li>
310
+ <li>Alternatively, press <kbd>F12</kbd> &gt; <strong>Storage</strong> tab &gt; <strong>Cache Storage</strong>, right-click any <code>webllm/model</code> entries, and click <strong>Delete</strong>.</li>
311
+ </ol>
312
+ </li>
313
+ </ul>
314
+ </div>
315
+
316
+ <div class="card">
317
+ <h2>Troubleshooting Common Issues &amp; Compatibility</h2>
318
+ <p>ZeroChat executes WebLLM through an in-memory self-contained classic Web Worker, ensuring full compatibility in both Google Chrome and Mozilla Firefox in a purely static web setup (without requiring local build steps or special browser flags). The JavaScript runtime is persistently cached in <em>Cache Storage</em> and automatically refreshed every 7 days when an active internet connection is available (with seamless offline fallback when disconnected).</p>
319
+ <p>Settings → Clear all data deletes storage for the current origin, including RAG, attachments, downloaded models, IndexedDB, Cache Storage and browser-private files. Close other tabs before confirming. Deletion is irreversible and affects applications sharing the origin. Repeat it for each HTTP or HTTPS origin you used. It does not delete files downloaded to your computer, HttpOnly cookies or the browser's internal HTTP cache.</p>
320
+ <p>If preparation fails, the model row displays the error detail received from WebLLM. Copy the complete message to diagnose hardware resource access and GPU WebGPU acceleration.</p>
321
+ <ul>
322
+ <li>
323
+ <strong>"WebGPU is not available in this browser":</strong> Ensure you are running the latest browser version with WebGPU flags enabled as described above.
324
+ </li>
325
+ <li>
326
+ <strong>Out of Memory (OOM) Errors:</strong> If the tab crashes or reloads during shader compilation, select a lighter model (0.5B – 1.5B) or close other GPU-intensive tabs.
327
+ </li>
328
+ <li>
329
+ <strong>Private Browsing / Incognito Mode:</strong> Incognito mode may wipe browser cache on exit. Use a regular browsing window to keep downloaded models permanently cached.
330
+ </li>
331
+ </ul>
332
+ </div>
333
+
334
+ <nav class="page-navigation" aria-label="Help navigation">
335
+ <a href="profiles.html" class="nav-button prev">
336
+ <span class="nav-direction">← Previous</span>
337
+ <span class="nav-title">Profiles & Providers</span>
338
+ </a>
339
+ <a href="index.html" class="nav-button index">
340
+ <span class="nav-direction">Index</span>
341
+ <span class="nav-title">View all topics</span>
342
+ </a>
343
+ <a href="tools-agent.html" class="nav-button next">
344
+ <span class="nav-direction">Next →</span>
345
+ <span class="nav-title">Agent Mode & Tools</span>
346
+ </a>
347
+ </nav>
348
+
349
+ <footer>
350
+ <p>ZeroChat · Universal Web AI Client · User Manual</p>
351
+ </footer>
352
+ </div>
353
+ <script src="../help.js"></script>
354
+ </body>
355
+ </html>
@@ -0,0 +1,39 @@
1
+ <!DOCTYPE html>
2
+ <html lang="es">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>API key de Gemini · ZeroChat</title>
7
+ <meta name="description" content="Cómo crear una API key de Gemini para usarla en ZeroChat.">
8
+ <link rel="stylesheet" href="help.css">
9
+ </head>
10
+ <body>
11
+ <div class="container">
12
+ <header>
13
+ <h1>Obtener una API key de Gemini</h1>
14
+ <p class="subtitle">La clave se crea desde Google AI Studio con tu cuenta de Google.</p>
15
+ </header>
16
+
17
+ <main>
18
+ <section class="card">
19
+ <h2>Pasos</h2>
20
+ <ol>
21
+ <li>
22
+ Abre <a href="https://aistudio.google.com/apikey" target="_blank" rel="noopener noreferrer">la página oficial de API keys de Google AI Studio</a> e inicia sesión con tu cuenta de Google.
23
+ </li>
24
+ <li>Acepta las condiciones si Google te las solicita. Las cuentas nuevas pueden recibir un proyecto y una clave inicial automáticamente.</li>
25
+ <li>Si no tienes una clave para usar, pulsa <strong>Create API key</strong> y sigue el diálogo para crear o elegir un proyecto.</li>
26
+ <li>Copia la API key y guárdala en un lugar privado.</li>
27
+ <li>En ZeroChat, crea o edita un perfil de proveedor <strong>Gemini</strong>, pega la clave y selecciona un modelo disponible.</li>
28
+ </ol>
29
+ </section>
30
+
31
+ <section class="card">
32
+ <h2>Importante</h2>
33
+ <p>Los modelos, límites, precios y disponibilidad cambian. Consulta <a href="https://ai.google.dev/gemini-api/docs/billing" target="_blank" rel="noopener noreferrer">la información oficial de Gemini API</a> antes de usarla en producción.</p>
34
+ <p>No compartas la API key ni la publiques en chats, capturas de pantalla, repositorios o archivos de configuración públicos.</p>
35
+ </section>
36
+ </main>
37
+ </div>
38
+ </body>
39
+ </html>