Ask a question to get started
Enter to send•Shift+Enter new line
Update the recently used model in config file.
Writes to [models].recent instead of [models].default, so that /model switches do not overwrite the user's intentional default.
[models].recent
[models].default
/model
save_recent_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 save in provider:model format.
provider:model
config_path
Path | None
None
Path to config file.
Defaults to ~/.deepagents/config.toml.
~/.deepagents/config.toml