From 13056822a82e9401499481f6ab1eeddaf66f5799 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 24 Mar 2025 12:29:17 +0800 Subject: [PATCH] Bump version to 1.2.9 and update API version to 1.2.3 - Add WHITELIST_PATHS environment variable to Server's README --- lightrag/__init__.py | 2 +- lightrag/api/README.md | 7 +++---- lightrag/api/__init__.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lightrag/__init__.py b/lightrag/__init__.py index b5ed66b5..9ffbac2a 100644 --- a/lightrag/__init__.py +++ b/lightrag/__init__.py @@ -1,5 +1,5 @@ from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam -__version__ = "1.2.8" +__version__ = "1.2.9" __author__ = "Zirui Guo" __url__ = "https://github.com/HKUDS/LightRAG" diff --git a/lightrag/api/README.md b/lightrag/api/README.md index 9d92f65f..c492658e 100644 --- a/lightrag/api/README.md +++ b/lightrag/api/README.md @@ -153,10 +153,6 @@ sudo systemctl status lightrag.service sudo systemctl enable lightrag.service ``` - - - - ## Ollama Emulation We provide an Ollama-compatible interfaces for LightRAG, aiming to emulate LightRAG as an Ollama chat model. This allows AI chat frontends supporting Ollama, such as Open WebUI, to access LightRAG easily. @@ -196,8 +192,11 @@ By default, the LightRAG Server can be accessed without any authentication. We c ``` LIGHTRAG_API_KEY=your-secure-api-key-here +WHITELIST_PATHS=/health,/api/* ``` +> Health check and Ollama emuluation endpoins is exclude from API-KEY check by default. + * Account credentials (the web UI requires login before access) LightRAG API Server implements JWT-based authentication using HS256 algorithm. To enable secure access control, the following environment variables are required: diff --git a/lightrag/api/__init__.py b/lightrag/api/__init__.py index 005c738a..8967cb32 100644 --- a/lightrag/api/__init__.py +++ b/lightrag/api/__init__.py @@ -1 +1 @@ -__api_version__ = "1.2.2" +__api_version__ = "1.2.3"