TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.83k stars 771 forks source link

Set temperature and top-probability via config? #425

Open austengary33 opened 11 months ago

austengary33 commented 11 months ago

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

--temperature
--top-probability

TheR1D commented 11 months ago

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

johnd0e commented 10 months ago

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

TheR1D commented 10 months ago

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 commented 10 months ago

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.