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

Update chatgpt.py: fix open() char encoding bug #58

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

orsnaro
Copy link
Contributor

@orsnaro orsnaro commented Dec 19, 2023

regarding issue #57

Although I set all open() default encodings to "utf-8" explicitly

here is the main lines in chatgpt.py that directly caused the bug:

  • #139

  • Also in case you asked GPT something like 'what was my last prompts' (given you opened using python chatgpt.py -r last switch for example) this line may cause the same bug if your GPT-cli could actually resume the previous session and see previous prompts and resend them to you!
    #107

@marcolardera marcolardera merged commit 200b90b into marcolardera:main Dec 24, 2023
orsnaro added a commit to orsnaro/Keyboard-Event-Recorder-tool that referenced this pull request Jun 19, 2024
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.

None yet

2 participants