Skip to content
PidocsCLI & tooling

Find how to set default model in Pi agent settings

Session from pi-sessions on Hugging Face by julien-c · CC-BY-4.0 · condensed by Coders Talk

1msession
0interventions
by library · 2d
GOAL

Figure out how to change the default LLM model used by the Pi coding agent.

  1. Prompt · +0
    How can I change my default model in my Pi settings?
  2. Agent did · +0m
    Read Pi's models.md, README.md, and settings.md docs to find where default model configuration lives
  3. Outcome · +1m
    Answered: use Ctrl+L or /model to switch on the fly, or set defaultProvider/defaultModel in ~/.pi/agent/settings.json or .pi/settings.json for a persistent default
VERDICT

I'd just ask directly for the settings file location and JSON keys next time instead of letting it read three docs files. It found the answer fine, pointing to /model for quick switching and defaultProvider/defaultModel in settings.json for a persistent change, but it took a few doc reads to get there.

I tried this · 0

Discussion · 0

How Builds work