Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🚚 ci: Make Image Publishing Owner-Agnostic Ahead of the Org Move (#15952)
Danny Avila80f93a463ab9
diff --git a/.github/playwright.yml b/.github/playwright.ymlindex e5cd5bdd8a..142d99b881 100644--- a/.github/playwright.yml+++ b/.github/playwright.yml@@ -13,7 +13,7 @@# jobs:# tests_e2e:# name: Run Playwright tests-# if: github.event.pull_request.head.repo.full_name == 'danny-avila/LibreChat'+# if: github.event.pull_request.head.repo.full_name == github.repository# timeout-minutes: 60# runs-on: ubuntu-latest# env:diff --git a/.github/workflows/a11y.yml b/.github/workflows/a11y.ymlindex 4de5212aa5..e2a521807b 100644--- a/.github/workflows/a11y.yml+++ b/.github/workflows/a11y.yml@@ -24,7 +24,7 @@ jobs:axe-linter:runs-on: ubuntu-latestif: >- (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'danny-avila/LibreChat') ||+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||(github.event_name == 'workflow_dispatch' && github.event.inputs.run_workflow == 'true')steps:diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymldeleted file mode 100644index c162429ce7..0000000000--- a/.github/workflows/build.yml+++ /dev/null@@ -1,41 +0,0 @@-name: Linux_Container_Workflow--on:- workflow_dispatch:--permissions:- contents: read--env:- RUNNER_VERSION: 2.293.0--jobs:- build-and-push:- runs-on: ubuntu-latest- steps:- # checkout the repo- - name: 'Checkout GitHub Action'- uses: actions/checkout@v5-- - name: 'Login via Azure CLI'- uses: azure/login@v3- with:- creds: ${{ secrets.AZURE_CREDENTIALS }}-- - name: 'Build GitHub Runner container image'- uses: docker/login-action@v4- with:- registry: ${{ secrets.REGISTRY_LOGIN_SERVER }}- username: ${{ secrets.REGISTRY_USERNAME }}- password: ${{ secrets.REGISTRY_PASSWORD }}- - run: |- docker build --build-arg RUNNER_VERSION=${{ env.RUNNER_VERSION }} -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/pwd9000-github-runner-lin:${{ env.RUNNER_VERSION }} .-- - name: 'Push container image to ACR'- uses: docker/login-action@v4- with:- registry: ${{ secrets.REGISTRY_LOGIN_SERVER }}- username: ${{ secrets.REGISTRY_USERNAME }}- password: ${{ secrets.REGISTRY_PASSWORD }}- - run: |- docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/pwd9000-github-runner-lin:${{ env.RUNNER_VERSION }}diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymldeleted file mode 100644index 767d64256b..0000000000--- a/.github/workflows/deploy.yml+++ /dev/null@@ -1,41 +0,0 @@-name: Deploy_GHRunner_Linux_ACI--on:- workflow_dispatch:--permissions:- contents: read--env:- RUNNER_VERSION: 2.293.0- ACI_RESOURCE_GROUP: 'Demo-ACI-GitHub-Runners-RG'- ACI_NAME: 'gh-runner-linux-01'- DNS_NAME_LABEL: 'gh-lin-01'- GH_OWNER: ${{ github.repository_owner }}- GH_REPOSITORY: 'LibreChat' #Change here to deploy self hosted runner ACI to another repo.--jobs:- deploy-gh-runner-aci:- runs-on: ubuntu-latest- steps:- # checkout the repo- - name: 'Checkout GitHub Action'- uses: actions/checkout@v5-- - name: 'Login via Azure CLI'- uses: azure/login@v3- with:- creds: ${{ secrets.AZURE_CREDENTIALS }}-- - name: 'Deploy to Azure Container Instances'- uses: 'azure/aci-deploy@v1'- with:- resource-group: ${{ env.ACI_RESOURCE_GROUP }}- image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/pwd9000-github-runner-lin:${{ env.RUNNER_VERSION }}- registry-login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}- registry-username: ${{ secrets.REGISTRY_USERNAME }}- registry-password: ${{ secrets.REGISTRY_PASSWORD }}- name: ${{ env.ACI_NAME }}- dns-name-label: ${{ env.DNS_NAME_LABEL }}- environment-variables: GH_TOKEN=${{ secrets.PAT_TOKEN }} GH_OWNER=${{ env.GH_OWNER }} GH_REPOSITORY=${{ env.GH_REPOSITORY }}- location: 'eastus'diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex d7503a35eb..69ceddb644 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -91,12 +91,15 @@ jobs:run: cp .env.example .env# Read from the checkout rather than github.sha, so a caller that builds a- # specific ref (main-image-workflow) stamps that ref's commit.+ # specific ref (main-image-workflow) stamps that ref's commit. Registry names+ # must be lowercase, and the repository owner is not guaranteed to be.- name: Compute build metadataenv:BUILD_BRANCH_INPUT: ${{ inputs.build_branch }}+ IMAGE_NAME: ${{ matrix.image.image_name }}run: |set -euo pipefail+ printf 'GHCR_IMAGE=ghcr.io/%s/%s\n' "${GITHUB_REPOSITORY_OWNER,,}" "$IMAGE_NAME" >> "$GITHUB_ENV"printf 'BUILD_COMMIT=%s\n' "$(git rev-parse HEAD)" >> "$GITHUB_ENV"printf 'BUILD_BRANCH=%s\n' "$BUILD_BRANCH_INPUT" >> "$GITHUB_ENV"printf 'BUILD_DATE=%s\n' "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_ENV"@@ -113,9 +116,9 @@ jobs:file: ${{ matrix.image.file }}platforms: linux/${{ matrix.arch }}target: ${{ matrix.image.target }}- cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ matrix.image.image_name }}:buildcache-${{ matrix.arch }}- cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ matrix.image.image_name }}:buildcache-${{ matrix.arch }},mode=max- outputs: type=image,"name=ghcr.io/${{ github.repository_owner }}/${{ matrix.image.image_name }},docker.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image.image_name }}",push-by-digest=true,name-canonical=true,push=true+ cache-from: type=registry,ref=${{ env.GHCR_IMAGE }}:buildcache-${{ matrix.arch }}+ cache-to: type=registry,ref=${{ env.GHCR_IMAGE }}:buildcache-${{ matrix.arch }},mode=max+ outputs: type=image,"name=${{ env.GHCR_IMAGE }},docker.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image.image_name }}",push-by-digest=true,name-canonical=true,push=truebuild-args: |BUILD_COMMIT=${{ env.BUILD_COMMIT }}BUILD_BRANCH=${{ env.BUILD_BRANCH }}@@ -163,6 +166,12 @@ jobs:image: ${{ fromJSON(inputs.images) }}steps:+ # Registry names must be lowercase, and the repository owner is not guaranteed to be.+ - name: Resolve GHCR image name+ env:+ IMAGE_NAME: ${{ matrix.image.image_name }}+ run: printf 'GHCR_IMAGE=ghcr.io/%s/%s\n' "${GITHUB_REPOSITORY_OWNER,,}" "$IMAGE_NAME" >> "$GITHUB_ENV"+- name: Download digestsuses: actions/download-artifact@v7with:@@ -191,7 +200,6 @@ jobs:- name: Create manifest lists and pushworking-directory: /tmp/digestsenv:- GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/${{ matrix.image.image_name }}DOCKERHUB_IMAGE: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ matrix.image.image_name }}EXPECTED_ARCHES: ${{ join(fromJSON(inputs.arches), ' ') }}TAG_SUFFIXES: ${{ inputs.tag_suffixes }}@@ -229,7 +237,6 @@ jobs:- name: Inspect imageenv:- GHCR_IMAGE: ghcr.io/${{ github.repository_owner }}/${{ matrix.image.image_name }}TAG_SUFFIXES: ${{ inputs.tag_suffixes }}run: |set -euo pipefaildiff --git a/.github/workflows/helmcharts.yml b/.github/workflows/helmcharts.ymlindex c0e0878610..659c210bec 100644--- a/.github/workflows/helmcharts.yml+++ b/.github/workflows/helmcharts.yml@@ -18,8 +18,6 @@ jobs:contents: readpackages: writeruns-on: ubuntu-latest- env:- CHART_REPOSITORY: ${{ github.repository_owner }}/librechat-chartsteps:- name: Resolve chart tagid: chart-version@@ -41,7 +39,9 @@ jobs:exit 1fi+ # OCI repository names must be lowercase, and the repository owner is not guaranteed to be.{+ printf 'CHART_REPOSITORY=%s/librechat-chart\n' "${GITHUB_REPOSITORY_OWNER,,}"printf 'CHART_REF=refs/tags/%s\n' "$CHART_TAG"printf 'CHART_TAG=%s\n' "$CHART_TAG"printf 'CHART_VERSION=%s\n' "$CHART_VERSION"@@ -85,7 +85,7 @@ jobs:uses: appany/[email protected]with:name: librechat- repository: ${{ env.CHART_REPOSITORY }}+ repository: ${{ steps.chart-version.outputs.CHART_REPOSITORY }}tag: ${{ steps.chart-version.outputs.CHART_VERSION }}path: helm/librechatregistry: ghcr.io@@ -97,7 +97,7 @@ jobs:uses: appany/[email protected]with:name: librechat-rag-api- repository: ${{ env.CHART_REPOSITORY }}+ repository: ${{ steps.chart-version.outputs.CHART_REPOSITORY }}tag: ${{ steps.chart-version.outputs.CHART_VERSION }}path: helm/librechat-rag-apiregistry: ghcr.io