Skip to content

Conversation

@rolandwalker
Copy link
Contributor

@rolandwalker rolandwalker commented Oct 25, 2025

Description

  • LLM support can be installed with new extras llm or all
  • conditionally import llm and llm.cli
  • show alternative message when user attempts to use \llm without dependencies available. Unlike ssh extras, there is no need to exit on failure.
  • cache the list of possible CLI commands for performance, avoiding a regression
  • update quickstart to recommend installing with the all extra
  • provide environment variable to turn off LLM support even in the presence of the llm dependency
  • update changelog
  • update doc/llm.md
  • incidental: show \llm command in \? help, only when available
  • incidental: --extra ssh is duplicative with --extra dev, so remove it from doc

Closes #1332

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@rolandwalker rolandwalker self-assigned this Oct 25, 2025
@rolandwalker rolandwalker requested a review from amjith October 25, 2025 17:33
only when "llm" can be imported
 * LLM support can be installed with new extras "llm" or "all"
 * conditionally import "llm" and "llm.cli"
 * show alternative message when user attempts to use \llm without
   dependencies available.  Unlike ssh extras, there is no need to exit
   on failure.
 * cache the list of possible CLI commands for performance, avoiding a
   regression
 * provide environment variable to turn off LLM support even in the
   presence of the llm dependency
 * update quickstart to recommend installing with the "all" extra
 * update changelog
 * update doc/llm.md
@rolandwalker rolandwalker force-pushed the RW/make-llm-optional-extra branch from a316064 to 2be3acd Compare October 25, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

llm dependencies forced?

2 participants