Resolve a model spec/alias into a fresh ellmer Chat
Source:R/model_switch.R
dot-resolve_model_chat.RdThin wrapper over .parse_client_spec() so model switching reuses the same
alias + provider-prefix resolution as codeagent_client_config().
Arguments
- model
Character.
"anthropic/...","openai/...","ollama/...", a plain model name, or an alias defined incodeagent.md.- cwd
Character. Working directory (for alias lookup).
- setting_sources
Passed to
load_settings()for a plain model name, so a client built withsetting_sources = "project"keeps ignoring the user-level settings when the model is switched.
Value
A fresh ellmer::Chat.