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
8.81k stars 693 forks source link

Container improvements #540

Open Robinsane opened 2 months ago

Robinsane commented 2 months ago
  1. added 3 env variables to make life easier configuring shell_gpt containers: IN_CONTAINER: setting this one to true, helps fix some default things that aren't handy when in a container:

    • The default for interaction becomes False, since [E]xecute on host doesn't work when you get the output from a container
    • Shell_gpt will not check the machine for os and shell (which would be fetched from the container), but will check what the user has configured in following env vars: OS_OUTSIDE_CONTAINER and SHELL_OUTSIDE_CONTAINER
  2. adjusted Dockerfile to use new env vars + added an example ollama Dockerfile

ismaelchris commented 2 months ago

These settings worked for me:

IN_CONTAINER=false
USE_LITELLM=true
Robinsane commented 1 month ago

Please give some feedback / merge when you have spare time :)

Robinsane commented 1 week ago

Changes made + tested in our production environment. I believe this is ready to be merged :)