Add Google Provider Settings feature

This commit is contained in:
Sirshendu Ganguly
2025-12-15 23:36:42 -05:00
parent d65e37d40a
commit 1b958b09c2
8 changed files with 346 additions and 2 deletions
+8
View File
@@ -188,6 +188,9 @@ class txt2img:
"safetyInputs": ("RUNWARESAFETYINPUTS", {
"tooltip": "Connect Runware Safety Inputs node to configure safety and content moderation settings.",
}),
"settings": ("RUNWARESETTINGS", {
"tooltip": "Connect Runware Settings node to configure temperature, systemPrompt, and topP parameters.",
}),
}
}
@@ -229,6 +232,7 @@ class txt2img:
inputs = kwargs.get("inputs", None)
providerSettings = kwargs.get("providerSettings", None)
safetyInputs = kwargs.get("safetyInputs", None)
settings = kwargs.get("settings", None)
seedImage = kwargs.get("seedImage", None)
seedImageStrength = kwargs.get("strength", 0.8)
maskImage = kwargs.get("maskImage", None)
@@ -386,6 +390,10 @@ class txt2img:
if safetyInputs is not None and isinstance(safetyInputs, dict) and len(safetyInputs) > 0:
genConfig[0]["safety"] = safetyInputs
# Add settings if provided
if settings is not None and isinstance(settings, dict) and len(settings) > 0:
genConfig[0]["settings"] = settings
if (multiInferenceMode):
return (None, genConfig)
else: