commit a621b0b7b7d1ec17c31a71dfd56c485acf7558cc
parent eda042a93a131ae3476588595ee4dc1dea9af264
Author: William Casarin <jb55@jb55.com>
Date: Wed, 18 Feb 2026 17:35:50 -0800
dave: default to OpenAI backend instead of Remote when no API key
Remote backend is only for controlling agentic sessions discovered
from relays, not a suitable default mode. Fall back to OpenAI
(with trial key) when no Anthropic key is available.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/crates/notedeck_dave/src/config.rs b/crates/notedeck_dave/src/config.rs
@@ -187,13 +187,13 @@ impl Default for ModelConfig {
}
}
} else {
- // Auto-detect: prefer Claude if key is available, then OpenAI, then Remote
+ // Auto-detect: prefer Claude if key is available, otherwise OpenAI
+ // (with trial key fallback). Remote is only for controlling
+ // agentic sessions discovered from relays, not the default mode.
if anthropic_api_key.is_some() {
BackendType::Claude
- } else if api_key.is_some() {
- BackendType::OpenAI
} else {
- BackendType::Remote
+ BackendType::OpenAI
}
};