feat: centralize default constants and refactor overlay enter handling in TUI
This commit is contained in:
@@ -109,7 +109,7 @@ pub fn spawn_background_review(
|
||||
// 3. Resolve LLM credentials
|
||||
let base_url = api_base.unwrap_or_else(|| {
|
||||
std::env::var("OPENAI_API_BASE")
|
||||
.unwrap_or_else(|_| "https://opencode.ai/zen/v1".to_string())
|
||||
.unwrap_or_else(|_| zesdex_domain::agent::defaults::DEFAULT_API_BASE.to_string())
|
||||
});
|
||||
|
||||
let client = LlmClient::new(api_key, model, Some(base_url));
|
||||
|
||||
Reference in New Issue
Block a user