Skip to content

Conversation

@jvanderaa
Copy link
Contributor

…s for processor behavior

Fix for the process of the OpenAI fallback to being a fallback. Includes a modification to not change the ical data.


# Use OpenAI parser as a last resort if all other processors failed.
if os.getenv("PARSER_OPENAI_API_KEY"):
self.add_subject_to_text(data)
Copy link
Contributor

Choose a reason for hiding this comment

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

Still feels like modifying data in place may lead to bugs in the future. Might be better to change add_subject_to_text(data) so that it returns a modified copy instead of modifying the original in place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should be good here, this is the last point in the path. Everything should be sent in and should be kept outside of the parsers.

@jvanderaa
Copy link
Contributor Author

Fixes #372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants