Skip to content

Commit

Permalink
fix: Open AI Parsing Fails When Group Has No Units (mealie-recipes#3769)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-genson authored Jun 21, 2024
1 parent b4f07f9 commit 72aa1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mealie/services/parser_services/openai/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _get_prompt(self, service: OpenAIService) -> str:
),
]

if service.send_db_data:
if service.send_db_data and self.units_by_alias:
data_injections.extend(
[
OpenAIDataInjection(
Expand Down

0 comments on commit 72aa1b2

Please sign in to comment.