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

Only send text files to the LLM #363

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

senko
Copy link
Contributor

@senko senko commented Dec 13, 2023

We only want to send text (non-binary) files to the LLM.

Aside from not making sense, it also crashes the replacement function as shown in this screenshot from one of the reported issues:

crash

Fixes: #337, #354

@LeonOstrez
Copy link
Member

i don't understand how is this going to prevent sending of non text files to LLM?

Main function for sending files to LLM is get_all_coded_files(). replace_files() that is modified in this PR is just updating content of files that are already in LLM message. Or am I missing something?

@senko senko changed the base branch from main to development December 18, 2023 17:11
@senko senko force-pushed the only-replace-things-in-string-files branch from 8def46a to 0c32753 Compare December 18, 2023 17:11
@senko senko force-pushed the only-replace-things-in-string-files branch from 0c32753 to a7c1bb8 Compare December 18, 2023 17:13
@LeonOstrez LeonOstrez merged commit 2e651c4 into development Dec 18, 2023
6 checks passed
@senko senko deleted the only-replace-things-in-string-files branch January 22, 2024 22:04
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.

TypeError: a bytes-like object is required, not 'str'
2 participants