Derive the model menu of Elffuss Code from the registries, not from a hand-written list #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
web/js/main.js builds its model menu with hand-written
opts.push({ id, label })lines, including two Gemma entries with fixed labels and one engine entry. The labels disagree with the catalog in providers/litert.js and with the other apps, and a model added to a registry stays hidden until someone edits this list. Why it matters: A hand-written model list already hid a newer model once; deriving the menu from the registries removes that class of bug.Proposal
Build the LiteRT entries from
MODELSin./providers/litert.jsand the engine entry from the engine registry that the build vendors as./engine/registro.js. Ask which registry export lists the engine models before writing the engine part.Acceptance criteria
litert:<key>menu id of web/js/main.js corresponds to a key ofMODELSexported byproviders/litert.js.MODELSthat the current menu offers is still offered.labelof itsMODELSentry.Files
web/js/main.jsT2T-Issue: 0x848d97f788f6a99d51bb5fed8b5045346c66a05c693b03fbe211bd811ee80443
Number: 3
Kind: improvement
Origin: imported
Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919
Ledger: elffuss/ledger, event 101