add call_simple for non-agent LLM calls

audit, digest, and compare now go through the API backend via
call_simple(), which logs to llm-logs/{caller}/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kent Overstreet 2026-03-22 02:08:32 -04:00
parent e3f7d6bd3c
commit 04dffa2184
4 changed files with 27 additions and 13 deletions

View file

@ -384,11 +384,8 @@ fn llm_compare(
) -> Result<std::cmp::Ordering, String> {
let prompt = build_compare_prompt(a, b);
let response = if model == "haiku" {
llm::call_haiku("compare", &prompt)?
} else {
llm::call_sonnet("compare", &prompt)?
};
let _ = model; // model selection handled by API backend config
let response = llm::call_simple("compare", &prompt)?;
let response = response.trim().to_uppercase();
if response.contains("BETTER: B") {