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

Set temperature and top-probability via config? #425

Open
austengary33 opened this issue Jan 3, 2024 · 4 comments
Open

Set temperature and top-probability via config? #425

austengary33 opened this issue Jan 3, 2024 · 4 comments
Labels
good first issue Good for newcomers

Comments

@austengary33
Copy link

Is it possible to set a default temperature and top-probability via config (~/.config/shell_gpt/.sgptrc)?

--temperature
--top-probability

@TheR1D
Copy link
Owner

TheR1D commented Jan 6, 2024

Currently, it is not possible, but we might implement it in the upcoming release.

@TheR1D TheR1D added the good first issue Good for newcomers label Jan 6, 2024
@johnd0e
Copy link

johnd0e commented Jan 29, 2024

I would like the possibility not only set default values via config, but also set specific values for each role.

@TheR1D
Copy link
Owner

TheR1D commented Jan 30, 2024

I would like the possibility not only set default values via config, but also set specific values for each role.

This can be done by using shell environment around sgpt.

 # .bashrc
 my_llm() {
   sgpt --temperature 0.5 --top-p 0.9 --role some_role "$@"
 }
soruce .bashrc
my_llm "some prompt"

@johnd0e
Copy link

johnd0e commented Jan 30, 2024

This can be done by using shell environment around sgpt.

Sure that can be achieved in dosen different ways, you are right.
What I am trying to say: shell_gpt's roles (stored in *.json files) also fit great for the purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants