Fix language fallback in summarize error
This commit is contained in:
parent
0be4f0144b
commit
2ccc39de9a
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue