Model catalog endpoint, so Settings > Models picks role models from a list #361

Closed
opened 2026-10-27 13:36:00 +00:00 by sam · 0 comments
Owner

Role models on Settings > Models are free text ('provider/model'). archied loads a models.dev catalog at boot (internal/app/archied/bootstrap.go, 'model catalog loaded': 16 providers, 635 models) but nothing serves it over HTTP; GET /api/chat/models falls through to index.html (see archie-core-eihf). Publish the catalog, filtered to the configured providers, where archie-ui can read it (same pattern as the other process-published snapshots), serve it from internal/webui, and make each role a combobox over it that still accepts a typed provider/model.

Close reason

Audit 2026-10-08 at 22f44dac: completed in 230280a6. archied catalogView adds sorted provider/model IDs to the published ConfigView snapshot; archie-ui reads that snapshot via its State Store contract and serves it at GET /api/config. Settings Models roleModelOptions filters suggestions to configured provider IDs; native datalist inputs preserve arbitrary typed provider/model values. Live browser verified 72 suggestions across three configured providers and an unsaved custom-model value, restored afterward. Embedding deliberately has a provider select restricted to embedding-capable classes and typed model name per 4676c706, because the chat catalog contains no embedding models. Reconstructed before screenshot from 230280a6 parent and current after screenshot captured and visually inspected. 195 UI tests and typecheck passed; uncached short webui Go tests passed. No code change or settings save.


Imported from beads archie-core-micl.26 · GitHub #1059 · type task · priority P2 · created 2026-09-25 · closed 2026-10-08

Role models on Settings > Models are free text ('provider/model'). archied loads a models.dev catalog at boot (internal/app/archied/bootstrap.go, 'model catalog loaded': 16 providers, 635 models) but nothing serves it over HTTP; GET /api/chat/models falls through to index.html (see archie-core-eihf). Publish the catalog, filtered to the configured providers, where archie-ui can read it (same pattern as the other process-published snapshots), serve it from internal/webui, and make each role a combobox over it that still accepts a typed provider/model. ### Close reason Audit 2026-10-08 at 22f44dac: completed in 230280a6. archied catalogView adds sorted provider/model IDs to the published ConfigView snapshot; archie-ui reads that snapshot via its State Store contract and serves it at GET /api/config. Settings Models roleModelOptions filters suggestions to configured provider IDs; native datalist inputs preserve arbitrary typed provider/model values. Live browser verified 72 suggestions across three configured providers and an unsaved custom-model value, restored afterward. Embedding deliberately has a provider select restricted to embedding-capable classes and typed model name per 4676c706, because the chat catalog contains no embedding models. Reconstructed before screenshot from 230280a6 parent and current after screenshot captured and visually inspected. 195 UI tests and typecheck passed; uncached short webui Go tests passed. No code change or settings save. --- _Imported from beads `archie-core-micl.26` · GitHub #1059 · type task · priority P2 · created 2026-09-25 · closed 2026-10-08_
sam added the mediumtask labels 2026-10-27 13:36:00 +00:00
sam self-assigned this 2026-10-27 13:36:00 +00:00
sam closed this issue 2026-10-27 13:36:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#361