From c27da0a0f6d68abf318867e38b9bef86b15f48a5 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 19 Sep 2025 19:09:04 +0200 Subject: [PATCH] fix(diffusers): fix float detection (#6313) There was apparently an oversight, this fixes the float/int detection Fixes: https://github.com/mudler/LocalAI/issues/6312 Signed-off-by: Ettore Di Giacinto --- backend/python/diffusers/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/python/diffusers/backend.py b/backend/python/diffusers/backend.py index c2f59dd11..085a90184 100755 --- a/backend/python/diffusers/backend.py +++ b/backend/python/diffusers/backend.py @@ -177,7 +177,7 @@ class BackendServicer(backend_pb2_grpc.BackendServicer): key, value = opt.split(":") # if value is a number, convert it to the appropriate type if is_float(value): - if value.is_integer(): + if float(value).is_integer(): value = int(value) else: value = float(value)