Choose model in zsh via environment variable#8
Open
quidnu wants to merge 1 commit intoCGamesPlay:mainfrom
Open
Choose model in zsh via environment variable#8quidnu wants to merge 1 commit intoCGamesPlay:mainfrom
quidnu wants to merge 1 commit intoCGamesPlay:mainfrom
Conversation
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.
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 🙂 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.