From 34f2ec2b3386fac5a9eb7ef46c2f6c6dbac56c7d Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Tue, 26 Sep 2023 09:30:22 -0400 Subject: [PATCH] gpt4all.py: GGUF --- gpt4all-bindings/python/gpt4all/gpt4all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-bindings/python/gpt4all/gpt4all.py b/gpt4all-bindings/python/gpt4all/gpt4all.py index 4776fbdf..66e57517 100644 --- a/gpt4all-bindings/python/gpt4all/gpt4all.py +++ b/gpt4all-bindings/python/gpt4all/gpt4all.py @@ -423,6 +423,6 @@ def empty_chat_session(system_prompt: str = "") -> List[MessageType]: def append_bin_suffix_if_missing(model_name): - if not model_name.endswith(".bin"): + if not model_name.endswith((".bin", ".gguf")): model_name += ".bin" return model_name