Artifact 670e226e771a31c3ed63f1512637dcec5db722635299647e753258024a33b0aa:
- File
src/tui/editor.h
-
2026-11-19 14:01:47
— part of check-in
[fb82c37817]
on branch models
— Model picker, slash command menu and Pi's model catalog
Models are chosen as in Pi. pic carries a snapshot of Pi's catalog for its providers (653 chat models; tools/model-catalog.sh regenerates it from pi.dev/api/models) and lays fresher per-provider lists from pi.dev over it, cached in ~/.pic/models-store.json with ETags and trusted for four hours, used only when newer than the snapshot. Resolution takes a model's API, endpoint, limits and compat settings from the catalog before the models file. pic models lists the models of providers with a key (--all every one, --json, --refresh); pic models --default saves the model used when none is given.
In the terminal interface, Ctrl+L or /model opens a picker of the models whose provider has a key, filtered by Pi's fuzzy matching as you type, current and default first; Enter uses the model, Ctrl+S also saves it as the default; Ctrl+P cycles. Typing / shows a menu of commands with their arguments (Tab completes, Enter runs) and /model completes model names. New commands show the conversation's details and token counts, copy the last reply (OSC 52 and the system clipboard), export, clone and list the hotkeys. (user: dmestas, size: 2450) [annotate] [blame] [check-ins using]
- 2026-11-19 14:32:22 — part of check-in [5451d909db] on branch trunk — CI green on 1e04dff70e05; Fil-C pass (user: dmestas, size: 2450) [annotate] [blame] [check-ins using]
-
2026-11-19 14:01:47
— part of check-in
[fb82c37817]
on branch models
— Model picker, slash command menu and Pi's model catalog