force image generation to be true on prod

This commit is contained in:
Abi Raja 2024-09-16 15:27:11 +02:00
parent 6379a1f1c6
commit 76188a7465

View File

@ -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,