mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
* agent: add a /model command to chnage current model And remove the pick-model CLI option * agent: add /provider to change the current provider * agent: extract requireLlmNoArg helper * agent: simplify provider detection * repl: add tab completion for /model and /provider Changes `/model` and `/provider` to accept an optional name argument instead of prompting with a numbered list. Bare commands now print the current selection, while Tab dynamically completes candidates. Model lists are fetched and cached to prevent redundant network requests. * agent: remember last selected provider and model Persists the last selected AI provider and model in a local `.lp-agent` file and resumes it on startup. Removes the interactive provider picker in favor of deterministic auto-detection. * agent: simplify requireLlm and model resolution Changes `requireLlm` to return a boolean instead of credentials, and cleans up the model initialization logic to use `resolved` directly. Also removes unused user errors. --------- Co-authored-by: Adrià Arrufat <adria.arrufat@gmail.com>