Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions ares-cli/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,16 @@ pub async fn run() -> anyhow::Result<()> {
}
#[cfg(feature = "blue")]
config::WorkerMode::BlueTask => {
// Blue team mode requires an LLM provider
let model_spec = std::env::var("ARES_LLM_MODEL")
.unwrap_or_else(|_| "anthropic/claude-sonnet-4-20250514".to_string());
// Blue team mode requires an LLM provider. Prefer the blue-specific
// override, then fall back to the shared model var. Matches the
// orchestrator's blue-only mode (see orchestrator/mod.rs).
let model_spec = std::env::var("ARES_BLUE_LLM_MODEL")
.ok()
.filter(|s| !s.is_empty())
.or_else(|| std::env::var("ARES_LLM_MODEL").ok().filter(|s| !s.is_empty()))
.ok_or_else(|| anyhow::anyhow!(
"No LLM model configured for blue worker — set ARES_BLUE_LLM_MODEL or ARES_LLM_MODEL"
))?;
let (provider, model_name) = match ares_llm::create_provider(&model_spec) {
Ok(p) => p,
Err(e) => {
Expand Down
Loading