shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

Container improvements

Open Robinsane opened this issue 1 year ago • 1 comments

  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
  1. adjusted Dockerfile to use new env vars + added an example ollama Dockerfile

Robinsane avatar Apr 11 '24 15:04 Robinsane

These settings worked for me:

IN_CONTAINER=false
USE_LITELLM=true

ismaelchris avatar Apr 15 '24 01:04 ismaelchris

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

Robinsane avatar May 22 '24 07:05 Robinsane

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

Robinsane avatar Jun 20 '24 10:06 Robinsane

Hi @Robinsane, Sorry for the late reply. The PR has been merged. Thank you for your contribution!

TheR1D avatar Aug 10 '24 17:08 TheR1D