Skip to content

Commit 380e6eb

Browse files
committed
fix: update watermark switch field attributes to use boolean values
1 parent 3a94d0f commit 380e6eb

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • apps/models_provider/impl
    • aliyun_bai_lian_model_provider/credential
    • minimax_model_provider/credential
    • volcanic_engine_model_provider/credential

apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/itv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class QwenModelParams(BaseForm):
3131

3232
watermark = SwitchField(
3333
TooltipLabel(_('Watermark'), _('Whether to add watermark')),
34-
attrs={"active-value": "true", "inactive-value": "false"},
34+
attrs={"active-value": True, "inactive-value": False},
3535
default_value=False,
3636
)
3737

apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/ttv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class QwenModelParams(BaseForm):
3434

3535
watermark = SwitchField(
3636
TooltipLabel(_('Watermark'), _('Whether to add watermark')),
37-
attrs={"active-value": "true", "inactive-value": "false"},
37+
attrs={"active-value": True, "inactive-value": False},
3838
default_value=False,
3939
)
4040

apps/models_provider/impl/minimax_model_provider/credential/itv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MiniMaxModelParams(BaseForm):
2020

2121
aigc_watermark = SwitchField(
2222
TooltipLabel(_('Watermark'), _('Whether to add watermark')),
23-
attrs={"active-value": "true", "inactive-value": "false"},
23+
attrs={"active-value": True, "inactive-value": False},
2424
default_value=False,
2525
)
2626

apps/models_provider/impl/volcanic_engine_model_provider/credential/ttv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class VolcanicEngineTTVModelGeneralParams(BaseForm):
4747

4848
watermark = SwitchField(
4949
TooltipLabel(_('Watermark'), _('Whether to add watermark')),
50-
attrs={"active-value": "true", "inactive-value": "false"},
50+
attrs={"active-value": True, "inactive-value": False},
5151
default_value=False,
5252
)
5353

0 commit comments

Comments
 (0)