Skip to content

Commit a621b0b

Browse files
jb55claude
andcommitted
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>
1 parent eda042a commit a621b0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/notedeck_dave/src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ impl Default for ModelConfig {
187187
}
188188
}
189189
} else {
190-
// Auto-detect: prefer Claude if key is available, then OpenAI, then Remote
190+
// Auto-detect: prefer Claude if key is available, otherwise OpenAI
191+
// (with trial key fallback). Remote is only for controlling
192+
// agentic sessions discovered from relays, not the default mode.
191193
if anthropic_api_key.is_some() {
192194
BackendType::Claude
193-
} else if api_key.is_some() {
194-
BackendType::OpenAI
195195
} else {
196-
BackendType::Remote
196+
BackendType::OpenAI
197197
}
198198
};
199199

0 commit comments

Comments
 (0)