Skip to content

Make LLM extraction optional#90

Open
jmcte wants to merge 1 commit into
mainfrom
codex/issue-83-optional-llm
Open

Make LLM extraction optional#90
jmcte wants to merge 1 commit into
mainfrom
codex/issue-83-optional-llm

Conversation

@jmcte
Copy link
Copy Markdown
Contributor

@jmcte jmcte commented May 23, 2026

Summary

  • move Anthropic into the optional llm extra so base installs remain deterministic-only
  • add explicit LLMNotAvailable failures for missing SDK or missing ANTHROPIC_API_KEY
  • centralize model resolution with --model-ready argument precedence over MAILPLUS_LLM_MODEL and the default constant
  • report LLM SDK/API-key/model status from mpi doctor

Verification

  • PYTHONPATH=src python3.12 -m unittest discover -s tests -p 'test_llm_extractor.py' -v
  • PYTHONPATH=src python3.12 -m unittest discover -s tests -p 'test_doctor.py' -v
  • bash scripts/ci/run-fast-checks.sh

Closes #83.

@jmcte jmcte requested a review from pheidon as a code owner May 23, 2026 21:23
@athena-omt athena-omt added area:ai AI/model/agent behavior surface. lane:daedalus Daedalus implementation/forge lane. review:athena Athena review governance requested. risk:medium Medium-risk change; normal care required. state:waiting-checks Waiting for CI/check status to settle. status:needs-review PR is ready for Athena review. labels May 23, 2026
@pheidon pheidon removed the lane:daedalus Daedalus implementation/forge lane. label May 23, 2026
Copy link
Copy Markdown

@pheidon pheidon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved from Pheidon second-pass review. I found no code-level blocker in the optional LLM extraction path, and local fast checks passed (122 tests). Merge should still wait for required GitHub CI to complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai AI/model/agent behavior surface. review:athena Athena review governance requested. risk:medium Medium-risk change; normal care required. state:waiting-checks Waiting for CI/check status to settle. status:needs-review PR is ready for Athena review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R2: Optional LLM dependency, configurable model, graceful no-LLM mode

3 participants