From 06fc65d9a0168f01ba657548fea55f54c35c2a6b Mon Sep 17 00:00:00 2001 From: zrguo <49157727+LarFii@users.noreply.github.com> Date: Wed, 5 Mar 2025 16:26:28 +0800 Subject: [PATCH] Revert "[EVO] Add language configuration to environment and argument parsing" This reverts commit a688b8822a8a9eb3853781bb5c71029a22aa5396. --- env.example | 2 +- lightrag/api/lightrag_server.py | 3 --- lightrag/api/utils_api.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/env.example b/env.example index 294a5b68..99909ac6 100644 --- a/env.example +++ b/env.example @@ -48,7 +48,7 @@ # CHUNK_OVERLAP_SIZE=100 # MAX_TOKENS=32768 # Max tokens send to LLM for summarization # MAX_TOKEN_SUMMARY=500 # Max tokens for entity or relations summary -# LANGUAGE=English +# SUMMARY_LANGUAGE=English # MAX_EMBED_TOKENS=8192 ### LLM Configuration (Use valid host. For local services installed with docker, you can use host.docker.internal) diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index 775dc5e3..8ad232f0 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -331,9 +331,6 @@ def create_app(args): "use_llm_check": False, }, namespace_prefix=args.namespace_prefix, - addon_params={ - "language": args.language, - }, auto_manage_storages_states=False, ) else: # azure_openai diff --git a/lightrag/api/utils_api.py b/lightrag/api/utils_api.py index f865682b..ed1250d4 100644 --- a/lightrag/api/utils_api.py +++ b/lightrag/api/utils_api.py @@ -340,7 +340,6 @@ def parse_args(is_uvicorn_mode: bool = False) -> argparse.Namespace: # Inject chunk configuration args.chunk_size = get_env_value("CHUNK_SIZE", 1200, int) args.chunk_overlap_size = get_env_value("CHUNK_OVERLAP_SIZE", 100, int) - args.language = get_env_value("LANGUAGE", "English") ollama_server_infos.LIGHTRAG_MODEL = args.simulated_model_name