Skip to content

Conversation

@amjith
Copy link
Member

@amjith amjith commented Jan 30, 2026

Description

Fixes #239

Checklist

  • I've added this contribution to the CHANGELOG.md file.

@amjith amjith requested a review from kracekumar January 30, 2026 05:49
monkeypatch.setattr(llm_module, "LLM_IMPORTED", True)
monkeypatch.setattr(llm_module, "LLM_CLI_COMMANDS", ["models"])


Copy link
Contributor

Choose a reason for hiding this comment

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

Should we consider testing missing llm module?

raise NotImplementedError


if LLM_IMPORTED:
Copy link
Contributor

Choose a reason for hiding this comment

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

If the user never installed llm, will \llm invocation show the message, NEED_DEPENDENCIES?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. This what they see:

/Users/amjith/History> \llm

To enable LLM features you need to install litecli with AI support:

    pip install 'litecli[ai]'

or install LLM libraries separately

   pip install llm

This is required to use the \llm command.

Time: 0.000s
/Users/amjith/History>

@amjith amjith merged commit 1f7c432 into main Jan 31, 2026
8 checks passed
@amjith amjith deleted the amjith/llm-optional branch January 31, 2026 00:52
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.

ease requirement on llm packages

3 participants