Skip to content

feat: Allow aliases to include default prompt options #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

irthomasthomas
Copy link

I implemented support for defining aliases with embedded default prompt options. This enables users to pre-configure common model parameters with an alias.

Key changes include:

  • Modified llm aliases set to accept -o/--option arguments, allowing options to be stored with the alias.
  • Updated llm prompt and llm chat commands to resolve and apply options defined within an alias. Command-line options now take precedence over alias-defined options.
  • Adjusted alias configuration parsing to be backward compatible, supporting both the new dictionary format (model and options) and the old string format.
  • Added comprehensive documentation for the new alias options feature.

I implemented support for defining aliases with embedded default prompt options. This enables users to pre-configure common model parameters with an alias.

Key changes include:
- Modified `llm aliases set` to accept `-o`/`--option` arguments, allowing options to be stored with the alias.
- Updated `llm prompt` and `llm chat` commands to resolve and apply options defined within an alias. Command-line options now take precedence over alias-defined options.
- Adjusted alias configuration parsing to be backward compatible, supporting both the new dictionary format (model and options) and the old string format.
- Added comprehensive documentation for the new alias options feature.
@irthomasthomas
Copy link
Author

  • Fixed regression bug where alias options weren't saved when model_id provided directly
  • Added comprehensive test coverage for alias options functionality

This should be good to merge, now.

This directory contained intermediate build artifacts that are no longer required by the current packaging and distribution configuration.
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.

1 participant