mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 02:25:08 +00:00
fix: Code standards (#1393)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user