We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac3ff9 commit 51ab742Copy full SHA for 51ab742
backend/services/openai_service.py
@@ -339,6 +339,12 @@ def extract_events_from_caption(
339
# Return empty list if API call fails
340
return []
341
342
+ def _format_image_list_for_prompt(self, urls):
343
+ """Format list of image URLs for the prompt."""
344
+ if not urls:
345
+ return "No images provided."
346
+ return "\n".join([f"Image {i}: {url}" for i, url in enumerate(urls)])
347
+
348
349
# Singleton instance
350
openai_service = OpenAIService()
0 commit comments