utopia-ia/elffuss-code public
Changesets · Branches · Tags · Compare
| Changeset | 68406d2e5f519db22deca2e7490c7c242f7553c549f11152a228c9bd0b7bc1ea |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-09-09 10:50 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-09-09 10:50 +02:00 |
| Parents | c089bb4c7092 |
2 files changed
modified web/index.html +1 −0
| @@ -68,6 +68,7 @@ | ||
| 68 | 68 | <button id="git-branch" class="chip" title="rama actual" hidden></button> |
| 69 | 69 | <span id="model-dot" class="dot off" title="modelo"></span> |
| 70 | 70 | <select id="model-select" hidden></select> |
| 71 | + <button id="disk-chip" class="ghost" hidden></button> | |
| 71 | 72 | <button id="btn-history" class="ghost icon-btn" title="Historial de conversaciones"></button> |
| 72 | 73 | <button id="btn-settings" class="ghost icon-btn" title="Ajustes, modelo y API keys"></button> |
| 73 | 74 | </div> |
modified web/js/main.js +10 −2
| @@ -407,9 +407,17 @@ | ||
| 407 | 407 | try { return (ENGINE_READY = (await fetch('js/engine/provider.js', { method: 'HEAD', cache: 'no-store' })).ok); } |
| 408 | 408 | catch { return (ENGINE_READY = false); } |
| 409 | 409 | })(); |
| 410 | +// Se le pregunta AL MOTOR por sus propios ficheros. Aquí había cableada la URL | |
| 411 | +// del 27B de un solo trozo; cuando pasó a dos fragmentos en dos hosts, esta | |
| 412 | +// línea siguió sondeando el fichero viejo y dando 200 de milagro, porque aún | |
| 413 | +// estaba en el servidor. El día que se borre, la opción desaparece del selector | |
| 414 | +// y nadie ata los dos cabos. Se importa el registro (unos kilobytes) y no el | |
| 415 | +// proveedor, que arrastra el motor entero. | |
| 410 | 416 | const modelo27Check = (async () => { |
| 411 | - try { return (MODEL27_READY = (await fetch('https://models.elffuss.utopiaia.com/qwen38-27b.gguf', { method: 'HEAD', cache: 'no-store' })).ok); } | |
| 412 | - catch { return (MODEL27_READY = false); } | |
| 417 | + try { | |
| 418 | + const reg = await import('./engine/registro.js'); | |
| 419 | + return (MODEL27_READY = await reg.disponible('qwen38-27b')); | |
| 420 | + } catch { return (MODEL27_READY = false); } | |
| 413 | 421 | })(); |
| 414 | 422 | |
| 415 | 423 | function modelOptions() { |