Skip to content

Comments

feat: Add language translation to OpenAI recipe parser#6805

Closed
lcs-crr wants to merge 1 commit intomealie-recipes:mealie-nextfrom
lcs-crr:recipe-parser-with-translator
Closed

feat: Add language translation to OpenAI recipe parser#6805
lcs-crr wants to merge 1 commit intomealie-recipes:mealie-nextfrom
lcs-crr:recipe-parser-with-translator

Conversation

@lcs-crr
Copy link

@lcs-crr lcs-crr commented Dec 31, 2025

What this PR does / why we need it:

(REQUIRED)

Which issue(s) this PR fixes:

(REQUIRED)

Special notes for your reviewer:

(fill-in or delete this section)

Testing

(fill-in or delete this section)

@lcs-crr lcs-crr changed the title feat: Add language translation to OpenAI recipe parser feat: Add language translation to OpenAI recipe parser Dec 31, 2025

async def parse_one(self, ingredient_string: str) -> ParsedIngredient:
items = await self.parse([ingredient_string])
async def parse_one(self, ingredient_string: str, translate_language: str | None = None) -> ParsedIngredient:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that this method is never called? I'm assuming it has to exist because of the abstract method in _base.py, but imo it is a bit confusing to have any logic within it beyond a raise NotImplementedError("This method is not supported.")

@lcs-crr
Copy link
Author

lcs-crr commented Feb 21, 2026

No capacity to work on it :/

@lcs-crr lcs-crr closed this Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant