Skip to content
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

Consider adding a flag to change model temporarily #68

Closed
woerndl opened this issue Sep 28, 2024 · 6 comments
Closed

Consider adding a flag to change model temporarily #68

woerndl opened this issue Sep 28, 2024 · 6 comments

Comments

@woerndl
Copy link

woerndl commented Sep 28, 2024

I run almost all of my commands with one of the simple models, but for more complex tasks I sometimes want to use a more advanced model. If I were to use --set-model I would have to add it to every command I run (to set and reset), changing the config.yaml way more than necessary. Do you think it would make sense to add a flag like --model or --use-model for single command usage that differs from the default model in the config?

@kardolus
Copy link
Owner

I like this idea. Maybe the configuration should be an array instead of a single config. Then you can "target" a different model on the fly. So you may have different llama, perplexity and chatgpt settings and just switch the model you are targeting rather than having to reset all values. This will be a little tedious to implement so it may take a minute. Great idea though.

@kardolus
Copy link
Owner

kardolus commented Oct 2, 2024

@woerndl I totally misread this. For a long time I have been thinking about having a quick way to set the LLM. Not the model :) -- So set llama, perplexity, openai etc.

Anyway, you can already set the model like this:

OPENAI_MODEL=gpt-3.5-turbo chatgpt who is max verstappen?

Is this something that works for you? I am down to create a flag as well if that's easier. It would not be hard to implement.

@kardolus
Copy link
Owner

kardolus commented Oct 2, 2024

FYI; Created a new issue here for the LLM targeting: #74

@kardolus
Copy link
Owner

kardolus commented Oct 8, 2024

Fixed in this commit: 1ad9eeb

Release: https://github.com/kardolus/chatgpt-cli/releases/tag/v1.7.0

@kardolus kardolus closed this as completed by moving to Done in LLM Kanban Oct 8, 2024
@woerndl
Copy link
Author

woerndl commented Oct 17, 2024

Thank you for your effort, Guillermo. In my opinion, runtime value overrides are a great addition, especially when working in the terminal where all commands now start with chatgpt rather than an environment variable in such cases. Great release!

@kardolus
Copy link
Owner

Thanks for the kind words! I appreciate it. Glad you are liking the new flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants