mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-30 17:06:14 +00:00
Fix language fallback in summarize error
This commit is contained in:
parent
0be4f0144b
commit
2ccc39de9a
@ -270,7 +270,7 @@ async def _summarize_descriptions(
|
||||
use_llm_func = partial(use_llm_func, _priority=8)
|
||||
|
||||
language = global_config["addon_params"].get(
|
||||
"language", PROMPTS["DEFAULT_LANGUAGE"]
|
||||
"language", DEFAULT_SUMMARY_LANGUAGE]
|
||||
)
|
||||
|
||||
summary_length_recommended = global_config["summary_length_recommended"]
|
||||
@ -2115,7 +2115,7 @@ async def extract_keywords_only(
|
||||
else:
|
||||
examples = "\n".join(PROMPTS["keywords_extraction_examples"])
|
||||
language = global_config["addon_params"].get(
|
||||
"language", PROMPTS["DEFAULT_LANGUAGE"]
|
||||
"language", DEFAULT_SUMMARY_LANGUAGE
|
||||
)
|
||||
|
||||
# 3. Process conversation history
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user