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.43k stars 746 forks source link

Set temperature and top-probability via config? #425

Open austengary33 opened 9 months ago

austengary33 commented 9 months ago

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

--temperature
--top-probability

TheR1D commented 9 months ago

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

johnd0e commented 8 months ago

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

TheR1D commented 8 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 8 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.