diff --git a/libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py b/libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py index 16d48736a2a67..2a371a4866bed 100644 --- a/libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py +++ b/libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py @@ -159,7 +159,7 @@ def from_model_id( if backend == "openvino": if not is_openvino_available(): raise ImportError( - f"Backend: {backend} {IMPORT_ERROR.format({backend})}" + f"Backend: {backend} {IMPORT_ERROR.format(backend)}" ) from optimum.intel import OVModelForCausalLM, OVModelForSeq2SeqLM # type: ignore[import] @@ -172,7 +172,7 @@ def from_model_id( else: if not is_ipex_available(): raise ImportError( - f"Backend: {backend} {IMPORT_ERROR.format({backend})}" + f"Backend: {backend} {IMPORT_ERROR.format(backend)}" ) from optimum.intel import IPEXModelForCausalLM, IPEXModelForSeq2SeqLM # type: ignore[import]