Ask a question to get started
Enter to send•Shift+Enter new line
Update the default model in config file.
Reads existing config (if any), updates [models].default, and writes back using proper TOML serialization.
[models].default
save_default_model( model_spec: str, config_path: Path | None = None, ) -> bool
Note:
This function does not preserve comments in the config file.
model_spec
str
The model to set as default in provider:model format.
provider:model
config_path
Path | None
None
Path to config file.
Defaults to ~/.deepagents/config.toml.
~/.deepagents/config.toml