Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly split jsonl upload at lineends #138

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

akloeckner
Copy link
Contributor

fixes #136

@akloeckner
Copy link
Contributor Author

#123 introduced a broken behavior of uploading jsonl files, because lines would not be split at line endings anymore, but after exactly 1000 characters. See #136.

This was done in a broader context of moving file I/O into or out of the event loop. I am not sure, why the original change was introduced. So, I think, my PR might probably be a workaround rather than a comprehensive fix.

Maybe @dgomes can comment/review?

@fvanroie fvanroie merged commit ae12b29 into HASwitchPlate:main Aug 6, 2024
2 checks passed
@fvanroie
Copy link
Collaborator

fvanroie commented Aug 6, 2024

Thanks!

@dgomes
Copy link
Collaborator

dgomes commented Aug 6, 2024

If the problem is the one identified in #136 then yes...

Just not sure about the identified problem is the correct one :/

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.

IncompleteInput and InvalidInput when sending jsonl
3 participants