shell_gpt
shell_gpt copied to clipboard
Container improvements
- 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
- adjusted Dockerfile to use new env vars + added an example ollama Dockerfile
These settings worked for me:
IN_CONTAINER=false
USE_LITELLM=true
Please give some feedback / merge when you have spare time :)
Changes made + tested in our production environment. I believe this is ready to be merged :)
Hi @Robinsane, Sorry for the late reply. The PR has been merged. Thank you for your contribution!