From b23989d45685167a6873a58c87497d27b1309214 Mon Sep 17 00:00:00 2001 From: Sirshendu Ganguly Date: Mon, 8 Jun 2026 09:54:38 +0530 Subject: [PATCH] Removed validations --- modules/settings.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/modules/settings.py b/modules/settings.py index 086a55b..4bd289d 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -368,28 +368,14 @@ class RunwareSettings: settings["thinking"] = bool(kwargs.get("thinking", False)) if useThinkingLevel: - thinking_level = str(kwargs.get("thinkingLevel", "high")) - if thinking_level not in ("low", "medium", "high", "xhigh"): - raise ValueError( - "thinkingLevel must be low, medium, high, or xhigh when useThinkingLevel is enabled." - ) - settings["thinkingLevel"] = thinking_level + settings["thinkingLevel"] = str(kwargs.get("thinkingLevel", "high")) if useBackgroundMode: - background_mode = str(kwargs.get("backgroundMode", "original")) - if background_mode not in ("original", "transparent", "solid"): - raise ValueError( - "backgroundMode must be original, transparent, or solid when useBackgroundMode is enabled." - ) - settings["backgroundMode"] = background_mode + settings["backgroundMode"] = str(kwargs.get("backgroundMode", "original")) if useBackgroundColor: background_color = (kwargs.get("backgroundColor") or "").strip() if background_color: - if not background_color.startswith("#") or len(background_color) != 7: - raise ValueError( - "backgroundColor must be a hex color in #RRGGBB format when useBackgroundColor is enabled." - ) settings["backgroundColor"] = background_color if useEnhancePrompt: