From d678eb5314013470c42aca8de300220f7b984437 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Mon, 6 May 2024 14:18:19 -0400 Subject: [PATCH] Fixes to Azure build --- .env.example | 4 +++- docker-compose.yml | 20 ++++++++++---------- ui/recipes_assistant_chat/Dockerfile | 2 +- ui/recipes_assistant_chat/librechat.yaml | 7 +++---- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.env.example b/.env.example index 4b27d389..ac5c5bc7 100644 --- a/.env.example +++ b/.env.example @@ -39,6 +39,8 @@ POSTGRES_RECIPE_PASSWORD= RECIPE_DB_CONN_STRING=postgresql://${POSTGRES_RECIPE_USER}:${POSTGRES_RECIPE_PASSWORD}@${POSTGRES_RECIPE_HOST}:${POSTGRES_RECIPE_PORT}/${POSTGRES_RECIPE_DB} # =========== Local Docker containers END ========== +CONFIG_PATH="/app/librechat.yaml" + #==================================================# # Get Memory Action Configuration # #==================================================# @@ -382,7 +384,7 @@ FIREBASE_APP_ID= APP_TITLE=LibreChat # CUSTOM_FOOTER="My custom footer" -HELP_AND_FAQ_URL=https://librechat.ai +HELP_AND_FAQ_URL=https://www.datakind.org/privacy-policy/ # SHOW_BIRTHDAY_ICON=true diff --git a/docker-compose.yml b/docker-compose.yml index 0ecb00eb..8a14d629 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,16 +31,16 @@ services: MEILI_HOST: http://meilisearch:7700 RAG_PORT: ${RAG_PORT:-8000} RAG_API_URL: http://rag-api:${RAG_PORT:-8000} - volumes: - - type: bind - source: ./.env - target: /app/.env - - ./ui/recipes_assistant_chat/images:/app/client/public/images - - ./ui/recipes_assistant_chat/logs:/app/api/logs - - ./ui/recipes_assistant_chat/tools:/app/api/app/clients/tools - - type: bind - source: ./ui/recipes_assistant_chat/librechat.yaml - target: /app/librechat.yaml + #volumes: + #- type: bind + # source: ./.env + # target: /app/.env + #- ./ui/recipes_assistant_chat/images:/app/client/public/images + #- ./ui/recipes_assistant_chat/logs:/app/api/logs + #- ./ui/recipes_assistant_chat/tools:/app/api/app/clients/tools + #- type: bind + # source: ./ui/recipes_assistant_chat/librechat.yaml + # target: /app/librechat.yaml mongodb: #platform: linux/amd64 container_name: haa-libre-chat-mongodb diff --git a/ui/recipes_assistant_chat/Dockerfile b/ui/recipes_assistant_chat/Dockerfile index 635ae2d7..8f1ff60c 100644 --- a/ui/recipes_assistant_chat/Dockerfile +++ b/ui/recipes_assistant_chat/Dockerfile @@ -1,7 +1,7 @@ #FROM ghcr.io/danny-avila/librechat FROM ghcr.io/danny-avila/librechat-dev:latest #FROM ghcr.io/danny-avila/librechat:v0.7.0 -RUN echo "!" +RUN echo "Hi!" COPY .env /app/.env COPY ./ui/recipes_assistant_chat/librechat.yaml /app/librechat.yaml COPY ./ui/recipes_assistant_chat/images /app/client/public/images diff --git a/ui/recipes_assistant_chat/librechat.yaml b/ui/recipes_assistant_chat/librechat.yaml index 5dc94422..3c4c1d7d 100644 --- a/ui/recipes_assistant_chat/librechat.yaml +++ b/ui/recipes_assistant_chat/librechat.yaml @@ -5,9 +5,9 @@ version: 1.0.5 # Cache settings: Set to true to enable caching -cache: true +cache: false -# Custom nterface configuration +# Custom Interface configuration interface: # Privacy policy settings privacyPolicy: @@ -33,7 +33,6 @@ registration: # Definition of custom endpoints endpoints: - plugins: true azureOpenAI: titleModel: "gpt-4" titleConvo: true @@ -41,7 +40,7 @@ endpoints: assistants: true groups: - group: "region-eastus2" - apiKey: "${AZURE_API_KEY_ENV}" + apiKey: 21e38dd24f114ef7b7ea8cd96112603a instanceName: "dkopenai2" version: "2024-02-15-preview" assistants: true