- Refactor prompt generation to separate location description functionality - Update user prompt generation for DALL-E 3 - Improve AI service's response handling This change enhances the AiService by creating a more modular approach to generating prompts. The introduction of a `generate_location_desc` method improves the detail and context provided in the generated prompts. Furthermore, the `ask_ai` method centralizes AI request logic, allowing for cleaner and more organized code. These adjustments should improve the overall robustness and readability of the prompt generation process. |
||
---|---|---|
.. | ||
ai_service.rb | ||
weather_service.rb |