From af4ee3ee215ad6b306d894e446c18ef522139dc4 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 12 Feb 2025 11:56:09 +0800 Subject: [PATCH] feat: enhance image generation prompt clarity - Add requirements for clearer and brighter images - Specify maintenance of brightness even in overcast conditions - Include enhancements for sunny day imagery - Revise output prompt to remove unnecessary prefix and suffix These changes improve the clarity and effectiveness of prompts used in AI-generated imagery. The additional specifications help guide the AI in producing visually appealing and contextually relevant images for various weather conditions. --- app/services/ai_service.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/services/ai_service.rb b/app/services/ai_service.rb index 568915c..97a0bd0 100644 --- a/app/services/ai_service.rb +++ b/app/services/ai_service.rb @@ -83,9 +83,12 @@ class AiService - Feature iconic landmarks or architecture from #{city.name} - Realistic style - Weather conditions should be clearly visible + - Keep the picture clear and bright and avoid blurring + - Ensure the overall brightness is maintained, even in overcast conditions, by incorporating vibrant colors and soft lighting effects. + - If it’s a sunny day, enhance the brightness and warmth of the scene. - Atmospheric and artistic composition - Generate a detailed, creative prompt that will produce a beautiful and realistic image. + Generate a detailed, creative prompt that will produce a beautiful and realistic image. Directly output prompt words, no prefix and suffix words PROMPT end end