Skip to content

Choose model in zsh via environment variable#8

Open
quidnu wants to merge 1 commit intoCGamesPlay:mainfrom
quidnu:zsh_specify_model
Open

Choose model in zsh via environment variable#8
quidnu wants to merge 1 commit intoCGamesPlay:mainfrom
quidnu:zsh_specify_model

Conversation

@quidnu
Copy link

@quidnu quidnu commented Nov 5, 2025

Optionally allow choosing the model in zsh by setting the environment variable LLMCMDCOMP_MODEL.

This allows you to set the model llm cmd uses independently of the default model set in the llm tool.

I typically want a faster or different model for llm cmdcomp than when I use llm directly or other commands that use llm which use the defaults.

Optionally allow choosing the model in zsh by setting the environment variable LLMCMDCOMP_MODEL. 

This allows you to set the model llm cmd uses independently of the default model.

This allows you to use a different model from the default model set in llm. I typically want a faster or different model for llm cmdcomp than when I use llm directly or other commands that use llm which use the defaults.
@quidnu quidnu changed the title Update llm-cmd-comp.zsh Choose model in zsh via environment variable Nov 7, 2025
@CGamesPlay
Copy link
Owner

Hi, thanks for contributing this!

I don't mind this concept, but I can't accept a PR that only adds the behavior for one of the supported shells. I also don't love that it only covers one of the supported options of the program. I would be more open to accepting a PR that made the same change to all supported shells, and much more open if there was an elegant way of accepting any of llm-cmd-comp's options via that environment variable. I think just LLMCMDCOMP_OPTS, interpreted as an unquoted string, would work fine.

If you don't have interest in making these revisions, I will one day get around to doing it myself 🙂

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.

2 participants