Ensure genai prompt is properly formatted (#14256)

This commit is contained in:
Josh Hawkins 2024-10-09 20:19:40 -05:00 committed by GitHub
parent d4925622f9
commit 9fda259c0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ class GenAIClient:
"""Generate a description for the frame."""
prompt = camera_config.genai.object_prompts.get(
label, camera_config.genai.prompt
)
).format(label=label)
return self._send(prompt, thumbnails)
def _init_provider(self):