Correct indentation of the multiline error message

This commit is contained in:
Konstantin Gukov 2023-05-26 09:54:13 +02:00 committed by Richard Guo
parent 5e61008424
commit 659244f0a2

View File

@ -316,7 +316,7 @@ class GPT4All():
elif model_name in MPT_MODELS:
return pyllmodel.MPTModel()
err_msg = f"""No corresponding model for provided filename {model_name}.
If this is a custom model, make sure to specify a valid model_type.
"""
err_msg = (f"No corresponding model for provided filename {model_name}.\n"
f"If this is a custom model, make sure to specify a valid model_type.\n")
raise ValueError(err_msg)