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: