fix: Open AI Parsing Fails When Group Has No Units (#3769)

This commit is contained in:
Michael Genson 2024-06-21 16:59:57 -05:00 committed by GitHub
parent b4f07f9d62
commit 72aa1b2514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ class OpenAIParser(ABCIngredientParser):
),
]
if service.send_db_data:
if service.send_db_data and self.units_by_alias:
data_injections.extend(
[
OpenAIDataInjection(