Skip to content

Commit 58339fd

Browse files
authored
Merge pull request #14 from intelequia/preview
Merge from Preview branch
2 parents 2a57f76 + cb0856e commit 58339fd

File tree

957 files changed

+75359
-22686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

957 files changed

+75359
-22686
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ librechat.yml
1919
# Ignore all hidden files
2020
.*
2121

22-
api/utils/intelequia/pluginsAndTools/configurations
22+
api/utils/intelequia/pluginsAndTools/configurations

.env.example

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ REGISTRATION_VIOLATION_SCORE=1
349349
CONCURRENT_VIOLATION_SCORE=1
350350
MESSAGE_VIOLATION_SCORE=1
351351
NON_BROWSER_VIOLATION_SCORE=20
352+
TTS_VIOLATION_SCORE=0
353+
STT_VIOLATION_SCORE=0
354+
FORK_VIOLATION_SCORE=0
355+
IMPORT_VIOLATION_SCORE=0
356+
FILE_UPLOAD_VIOLATION_SCORE=0
352357

353358
LOGIN_MAX=7
354359
LOGIN_WINDOW=5
@@ -437,6 +442,8 @@ OPENID_REQUIRED_ROLE_PARAMETER_PATH=
437442
OPENID_USERNAME_CLAIM=
438443
# Set to determine which user info property returned from OpenID Provider to store as the User's name
439444
OPENID_NAME_CLAIM=
445+
# Optional audience parameter for OpenID authorization requests
446+
OPENID_AUDIENCE=
440447

441448
OPENID_BUTTON_LABEL=
442449
OPENID_IMAGE_URL=
@@ -575,6 +582,10 @@ ALLOW_SHARED_LINKS_PUBLIC=true
575582
# If you have another service in front of your LibreChat doing compression, disable express based compression here
576583
# DISABLE_COMPRESSION=true
577584

585+
# If you have gzipped version of uploaded image images in the same folder, this will enable gzip scan and serving of these images
586+
# Note: The images folder will be scanned on startup and a ma kept in memory. Be careful for large number of images.
587+
# ENABLE_IMAGE_OUTPUT_GZIP_SCAN=true
588+
578589
#===================================================#
579590
# UI #
580591
#===================================================#
@@ -592,11 +603,40 @@ HELP_AND_FAQ_URL=https://librechat.ai
592603
# REDIS Options #
593604
#===============#
594605

595-
# REDIS_URI=10.10.10.10:6379
606+
# Enable Redis for caching and session storage
596607
# USE_REDIS=true
597608

598-
# USE_REDIS_CLUSTER=true
599-
# REDIS_CA=/path/to/ca.crt
609+
# Single Redis instance
610+
# REDIS_URI=redis://127.0.0.1:6379
611+
612+
# Redis cluster (multiple nodes)
613+
# REDIS_URI=redis://127.0.0.1:7001,redis://127.0.0.1:7002,redis://127.0.0.1:7003
614+
615+
# Redis with TLS/SSL encryption and CA certificate
616+
# REDIS_URI=rediss://127.0.0.1:6380
617+
# REDIS_CA=/path/to/ca-cert.pem
618+
619+
# Redis authentication (if required)
620+
# REDIS_USERNAME=your_redis_username
621+
# REDIS_PASSWORD=your_redis_password
622+
623+
# Redis key prefix configuration
624+
# Use environment variable name for dynamic prefix (recommended for cloud deployments)
625+
# REDIS_KEY_PREFIX_VAR=K_REVISION
626+
# Or use static prefix directly
627+
# REDIS_KEY_PREFIX=librechat
628+
629+
# Redis connection limits
630+
# REDIS_MAX_LISTENERS=40
631+
632+
# Redis ping interval in seconds (0 = disabled, >0 = enabled)
633+
# When set to a positive integer, Redis clients will ping the server at this interval to keep connections alive
634+
# When unset or 0, no pinging is performed (recommended for most use cases)
635+
# REDIS_PING_INTERVAL=300
636+
637+
# Force specific cache namespaces to use in-memory storage even when Redis is enabled
638+
# Comma-separated list of CacheKeys (e.g., STATIC_CONFIG,ROLES,MESSAGES)
639+
# FORCED_IN_MEMORY_CACHE_NAMESPACES=STATIC_CONFIG,ROLES
600640

601641
#==================================================#
602642
# Others #

.github/workflows/backend-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- release/*
88
paths:
99
- 'api/**'
10-
- 'packages/api/**'
10+
- 'packages/**'
1111
jobs:
1212
tests_Backend:
1313
name: Run Backend unit tests

.github/workflows/client.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Publish `@librechat/client` to NPM
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'packages/client/package.json'
9+
workflow_dispatch:
10+
inputs:
11+
reason:
12+
description: 'Reason for manual trigger'
13+
required: false
14+
default: 'Manual publish requested'
15+
16+
jobs:
17+
build-and-publish:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Use Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20.x'
26+
27+
- name: Install client dependencies
28+
run: cd packages/client && npm ci
29+
30+
- name: Build client
31+
run: cd packages/client && npm run build
32+
33+
- name: Set up npm authentication
34+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.PUBLISH_NPM_TOKEN }}" > ~/.npmrc
35+
36+
- name: Check version change
37+
id: check
38+
working-directory: packages/client
39+
run: |
40+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
41+
PUBLISHED_VERSION=$(npm view @librechat/client version 2>/dev/null || echo "0.0.0")
42+
if [ "$PACKAGE_VERSION" = "$PUBLISHED_VERSION" ]; then
43+
echo "No version change, skipping publish"
44+
echo "skip=true" >> $GITHUB_OUTPUT
45+
else
46+
echo "Version changed, proceeding with publish"
47+
echo "skip=false" >> $GITHUB_OUTPUT
48+
fi
49+
50+
- name: Pack package
51+
if: steps.check.outputs.skip != 'true'
52+
working-directory: packages/client
53+
run: npm pack
54+
55+
- name: Publish
56+
if: steps.check.outputs.skip != 'true'
57+
working-directory: packages/client
58+
run: npm publish *.tgz --access public

.github/workflows/data-schemas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Use Node.js
2323
uses: actions/setup-node@v4
2424
with:
25-
node-version: '18.x'
25+
node-version: '20.x'
2626

2727
- name: Install dependencies
2828
run: cd packages/data-schemas && npm ci

.github/workflows/frontend-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- release/*
99
paths:
1010
- 'client/**'
11-
- 'packages/**'
11+
- 'packages/data-provider/**'
1212

1313
jobs:
1414
tests_frontend_ubuntu:

.github/workflows/generate-release-changelog-pr.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.github/workflows/generate-unreleased-changelog-pr.yml

Lines changed: 0 additions & 107 deletions
This file was deleted.

.github/workflows/i18n-unused-keys.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- "client/src/**"
77
- "api/**"
88
- "packages/data-provider/src/**"
9+
- "packages/client/**"
910

1011
jobs:
1112
detect-unused-i18n-keys:
@@ -23,7 +24,7 @@ jobs:
2324
2425
# Define paths
2526
I18N_FILE="client/src/locales/en/translation.json"
26-
SOURCE_DIRS=("client/src" "api" "packages/data-provider/src")
27+
SOURCE_DIRS=("client/src" "api" "packages/data-provider/src" "packages/client")
2728
2829
# Check if translation file exists
2930
if [[ ! -f "$I18N_FILE" ]]; then

.github/workflows/locize-i18n-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
# 2. Download translation files from locize.
5050
- name: Download Translations from locize
51-
uses: locize/download@v1
51+
uses: locize/download@v2
5252
with:
5353
project-id: ${{ secrets.LOCIZE_PROJECT_ID }}
5454
path: "client/src/locales"

0 commit comments

Comments
 (0)