From 4d38dad1cf9b2b8d5c2b916193b44deff9dea096 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 9 Apr 2025 15:51:56 +0800 Subject: [PATCH] feat: improve DALL-E prompt generation for weather scenes - Update the prompt to specify generating a highly detailed and photorealistic image for a specific weather moment. - Enhance clarity regarding the scene's inspiration by retaining context about the city, state, country, and region. This change refines the AI generation process by focusing on particular weather moments, improving the output's relevance and detail, which could lead to a better user experience. --- app/services/ai_service.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/ai_service.rb b/app/services/ai_service.rb index 48d0af4..fa835a0 100644 --- a/app/services/ai_service.rb +++ b/app/services/ai_service.rb @@ -71,8 +71,7 @@ class AiService state = city.state&.name || "" <<~PROMPT - Ultra-realistic photography of #{city.name}, #{state}, #{country}, #{region}. - captured with Phase One IQ4 150MP medium format camera, Hasselblad XCD 45mm f/4 lens. + Generate a highly detailed and photorealistic DALL-E 3 prompt capturing a specific weather moment in #{city.name}, #{state}, #{country}, #{region}. **Scene Inspiration:** #{city_desc}