AddWatermark currently has omitempty, which in turns makes so that the API is called without the field set to false. Since the watermarks are enable by default, there is no way we can disable it in the config
This is specially problematic if you call it with a seed for example. Some models do not support having a watermark together with a seed.
Environment details
- Programming language: golang
- OS: macos
- Language runtime version: 1.26
- Package version: 1.49
Steps to reproduce
- set
GenerateImagesConfig.AddWatermark to false
- observe as your config is ignored by the api call
AddWatermarkcurrently hasomitempty, which in turns makes so that the API is called without the field set tofalse. Since the watermarks are enable by default, there is no way we can disable it in the configThis is specially problematic if you call it with a
seedfor example. Some models do not support having a watermark together with a seed.Environment details
Steps to reproduce
GenerateImagesConfig.AddWatermarktofalse