From 61188fb157e5db2788a7415c26fac771e7aa72c3 Mon Sep 17 00:00:00 2001 From: hh-space-invader Date: Thu, 19 Dec 2024 09:13:03 +0200 Subject: [PATCH] Updated warning message --- fastembed/common/onnx_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastembed/common/onnx_model.py b/fastembed/common/onnx_model.py index db111e3a..9e9376f3 100644 --- a/fastembed/common/onnx_model.py +++ b/fastembed/common/onnx_model.py @@ -54,9 +54,9 @@ def _load_onnx_model( if cuda and providers is not None: warnings.warn( - "You have specified both `cuda=True` and `providers`. This creates a conflict because `providers` takes precedence. " - "Avoid specifying `providers` and use `cuda=True` at the same time.", + f"`cuda` and `providers` are mutually exclusive parameters, cuda: {cuda}, providers: {providers}", category=UserWarning, + stacklevel=6, ) if providers is not None: