Skip to content

Instantly share code, notes, and snippets.

@davehague
Last active September 19, 2024 14:05
Show Gist options
  • Save davehague/aa4bfcd2f233ab4eec541ceac2101705 to your computer and use it in GitHub Desktop.
Save davehague/aa4bfcd2f233ab4eec541ceac2101705 to your computer and use it in GitHub Desktop.
Update Librechat

To pull the latest changes for LibreChat using Docker, while also considering the caching of images, you can follow these steps:

  1. Stop the running LibreChat container(s):
docker compose down
  1. CD to your librechat repository:
cd C:\Users\david\source\librechat
  1. Pull the latest changes from the LibreChat Git repository:
git pull
  1. If you're using the default setup with pre-built images, pull the latest LibreChat image:
docker compose pull
  1. Check if .env.example has new LLM models and copy them over to your .env file
ANTHROPIC_MODELS=claude-3-opus-20240229,claude-3-sonnet-20240229,claude-3-haiku-20240307,claude-2.1,claude-2,claude-1.2,claude-1,claude-1-100k,claude-instant-1,claude-instant-1-100k
GOOGLE_MODELS=gemini-1.5-flash-latest,gemini-1.0-pro,gemini-1.0-pro-001,gemini-1.0-pro-latest,gemini-1.0-pro-vision-latest,gemini-1.5-pro-latest,gemini-pro,gemini-pro-vision
OPENAI_MODELS=gpt-4o,gpt-3.5-turbo-0125,gpt-3.5-turbo-0301,gpt-3.5-turbo,gpt-4,gpt-4-0613,gpt-4-vision-preview,gpt-3.5-turbo-0613,gpt-3.5-turbo-16k-0613,gpt-4-0125-preview,gpt-4-turbo-preview,gpt-4-1106-preview,gpt-3.5-turbo-1106,gpt-3.5-turbo-instruct,gpt-3.5-turbo-instruct-0914,gpt-3.5-turbo-16k
  1. Start the updated LibreChat container(s):
docker compose up -d
  1. Visit http://localhost:3080/c/new to use the site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment