force image generation to be true on prod
This commit is contained in:
parent
6379a1f1c6
commit
76188a7465
@ -193,7 +193,9 @@ async def extract_params(
|
||||
print("Using official OpenAI URL")
|
||||
|
||||
# Get the image generation flag from the request. Fall back to True if not provided.
|
||||
should_generate_images = bool(params.get("isImageGenerationEnabled", True))
|
||||
should_generate_images = (
|
||||
bool(params.get("isImageGenerationEnabled", True)) if not IS_PROD else True
|
||||
)
|
||||
|
||||
return ExtractedParams(
|
||||
stack=validated_stack,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user