summaryrefslogtreecommitdiffstats
path: root/src/config/agent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/agent.rs')
-rw-r--r--src/config/agent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/agent.rs b/src/config/agent.rs
index 5e54b26..c81ed11 100644
--- a/src/config/agent.rs
+++ b/src/config/agent.rs
@@ -61,7 +61,7 @@ impl Agent {
let model = {
let config = config.read();
match agent_config.model_id.as_ref() {
- Some(model_id) => Model::retrieve_chat(&config, model_id)?,
+ Some(model_id) => Model::retrieve_model(&config, model_id, ModelType::Chat)?,
None => config.current_model().clone(),
}
};