fix(diffusers): consider options only in form of key/value (#5277)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2025-04-29 17:08:55 +02:00 committed by GitHub
parent 662cfc2b48
commit 6e8f4f584b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,9 +168,13 @@ class BackendServicer(backend_pb2_grpc.BackendServicer):
# We are storing all the options in a dict so we can use it later when
# generating the images
for opt in options:
if ":" not in opt:
continue
key, value = opt.split(":")
self.options[key] = value
print(f"Options: {self.options}", file=sys.stderr)
local = False
modelFile = request.Model