Skip to content

v1.7.3 🤖 💬

Latest
Compare
Choose a tag to compare
@judahpaul16 judahpaul16 released this 29 Jan 14:46

🚀 TL;DR

  1. Run the setup script with the --no-build flag to pull the latest image from DockerHub:
curl -s https://raw.githubusercontent.com/judahpaul16/gpt-home/main/contrib/setup.sh | \
    bash -s -- --no-build
  1. Required for Semantic Routing: Update the openai_api_key field in settings.json with your API key for the OpenAI and make sure you have at least a few dollars in your billing tab. You can also update this later in the web interface at gpt-home.local/settings or [local_ip_address]/settings.
docker exec -it gpt-home bash -c "sed -i 's/\"openai_api_key\": \"[^\"]*\"/\"openai_api_key\": \"YOUR_API_KEY_HERE\"/' src/settings.json"
  1. Optional: If you want to use a model not provided by OpenAI, make sure to update the litellm_api_key field in settings.json. See the LiteLLM docs for a list of all supported providers. You can also update this later in the web interface at gpt-home.local/settings or [local_ip_address]/settings.
docker exec -it gpt-home bash -c "sed -i 's/\"litellm_api_key\": \"[^\"]*\"/\"litellm_api_key\": \"YOUR_API_KEY_HERE\"/' src/settings.json"

Optional: Add these aliases to your .bashrc file for easier management of the container.

alias gpt-start="docker exec -it gpt-home supervisorctl start app"
alias gpt-restart="docker exec -it gpt-home supervisorctl restart app"
alias gpt-stop="docker exec -it gpt-home supervisorctl stop app"
alias gpt-status="docker exec -it gpt-home supervisorctl status app"
alias gpt-log="docker exec -it gpt-home tail -n 100 -f /app/src/events.log"

alias wi-start="docker exec -it gpt-home supervisorctl start web-interface"
alias wi-restart="docker exec -it gpt-home supervisorctl restart web-interface && sudo systemctl restart nginx"
alias wi-stop="docker exec -it gpt-home supervisorctl stop web-interface"
alias wi-status="docker exec -it gpt-home supervisorctl status web-interface"
alias wi-build="docker exec -it gpt-home bash -c 'cd /app/src/frontend && npm i && npm run build'"
alias wi-log="tail -n 100 -f /var/log/nginx/access.log"
alias wi-error="tail -n 100 -f /var/log/nginx/error.log"

alias spotifyd-start="docker exec -it gpt-home supervisorctl start spotifyd"
alias spotifyd-restart="docker exec -it gpt-home supervisorctl restart spotifyd"
alias spotifyd-stop="docker exec -it gpt-home supervisorctl stop spotifyd"
alias spotifyd-status="docker exec -it gpt-home supervisorctl status spotifyd"
alias spotifyd-log="docker exec -it gpt-home tail -n 100 -f /var/log/spotifyd.log"

Run source ~/.bashrc to apply the changes to your current terminal session.

Full Changelog: v1.7.2...v1.7.3