Fix linting

This commit is contained in:
yangdx
2025-02-13 14:07:36 +08:00
parent e5adb2e0f3
commit cdd52809b0
2 changed files with 9 additions and 2 deletions

View File

@@ -416,7 +416,13 @@ async def get_best_cached_response(
if best_similarity > similarity_threshold:
# If LLM check is enabled and all required parameters are provided
if use_llm_check and llm_func and original_prompt and best_prompt and best_response is not None:
if (
use_llm_check
and llm_func
and original_prompt
and best_prompt
and best_response is not None
):
compare_prompt = PROMPTS["similarity_check"].format(
original_prompt=original_prompt, cached_prompt=best_prompt
)