From 6da62a62f062704cc96f32d75d411c4428f23a4a Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Fri, 9 Feb 2024 15:09:13 -0500 Subject: [PATCH] python: this was supposed to be an f-string Signed-off-by: Jared Van Bortel --- gpt4all-bindings/python/gpt4all/_pyllmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-bindings/python/gpt4all/_pyllmodel.py b/gpt4all-bindings/python/gpt4all/_pyllmodel.py index 100ec4cbc041..eb03a91443fe 100644 --- a/gpt4all-bindings/python/gpt4all/_pyllmodel.py +++ b/gpt4all-bindings/python/gpt4all/_pyllmodel.py @@ -175,7 +175,7 @@ def __init__(self, model_path: str, n_ctx: int, ngl: int): model = llmodel.llmodel_model_create2(self.model_path, b"auto", ctypes.byref(err)) if model is None: s = err.value - raise ValueError("Unable to instantiate model: {'null' if s is None else s.decode()}") + raise ValueError(f"Unable to instantiate model: {'null' if s is None else s.decode()}") self.model = model def __del__(self):