fix: Code standards (#1393)

This commit is contained in:
yyhhyy
2024-04-09 21:01:32 +08:00
committed by GitHub
parent 4fe10c0906
commit 0f2b46da62
4 changed files with 10 additions and 6 deletions

View File

@@ -363,7 +363,7 @@ class LlamaCppAdapater(BaseLLMAdaper):
logger.warn(
f"Model path {model_path} is not single file, use first *gglm*.gguf model file: {model_path}"
)
if not re.fullmatch(".*ggml.*\.gguf", model_path):
if not re.fullmatch(r".*ggml.*\.gguf", model_path):
return False, None
return True, model_path