Skip to main content

Filter llm models list by starring favorites

Project description

llm-model-filter

Filter the llm models list to show only your favorite "starred" models. Especially useful for LLM agents that need a clean list of available capabilities.

Installation

Install this plugin in the same environment as LLM:

llm install llm-model-filter

Usage

1. Configure Filtering

By default, the plugin doesn't filter anything. You can enable "starred-only" mode:

llm models config starred-only

To revert:

llm models config all

2. Starring Models

Add models to your favorites:

llm models star gpt-4o
llm models star claude-3.5-sonnet

3. Viewing Models

When configured to starred-only, the standard llm models command will only show your favorites:

llm models

To see all models regardless of configuration:

llm models list --all

4. Unstarring

Remove models from your favorites:

llm models unstar gpt-4o

How it works

This plugin wraps the llm models list command. It uses a robust callback-modification technique to ensure compatibility with existing flags while providing the filtering logic.

Starred models and configuration are stored in llm.user_dir() / "models_mod_starred.json".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_model_filter-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_model_filter-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_model_filter-0.1.1.tar.gz.

File metadata

  • Download URL: llm_model_filter-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for llm_model_filter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8966ebf7f0d0372f8fdf2f173fc9f64ea9b726d0824f685df61fba7e9c0ba38e
MD5 d7c677b1ff73ee68a73d2262db82f0ce
BLAKE2b-256 210b5dadc29d3717fe81e0c6a966fb4252cbdd442f459964df3fea776e466040

See more details on using hashes here.

File details

Details for the file llm_model_filter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_model_filter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85f3f974cb9a9721d8cf99ade38c87dfa68b560adc6736864553db2e43658c83
MD5 db9fb28f39e3e25fcc06ff6cb49a4a8a
BLAKE2b-256 33d83b2e1dca308db657f48e8412f92ef0f3b6f44e5446677885b177cbace465

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page