Closed mpbunch closed 1 year ago
Hi,
I have seen your PRs and thanks for your notice. I have upgraded the CharGpt version but I do not have a session token for test.
https://github.com/williamfzc/chat-gpt-ppt/commit/1d3c0abbf1047ed3e83b88f992a01f0ffe52de27
You can try this version.
This project has been rewritten with golang. This problem no longer exists.
This problem exists on golang too .
panic: Post "https://api.openai.com/v1/chat/completions": net/http: invalid header field value for "Authorization"
goroutine 1 [running]: main.panicIfErr(...) /data/data/com.termux/files/home/chat-gpt-ppt/cmd/cgp/main.go:42 main.main() /data/data/com.termux/files/home/chat-gpt-ppt/cmd/cgp/main.go:37 +0x324
Did you set a correct token (OpenAI official APIKEY) in token.txt?
This problem exists on golang too .
panic: Post "https://api.openai.com/v1/chat/completions": net/http: invalid header field value for "Authorization"
goroutine 1 [running]: main.panicIfErr(...) /data/data/com.termux/files/home/chat-gpt-ppt/cmd/cgp/main.go:42 main.main() /data/data/com.termux/files/home/chat-gpt-ppt/cmd/cgp/main.go:37 +0x324
Oh I see. Maybe there are some extra white spaces or empty lines in your token.txt
.
I have added some descriptions in README, thanks.
Installed chat-gpt-ppt:
Added the token.txt and data.txt file to the example folder. Placed the session_token within the token.txt file.
Run the following command:
The following error was returned:
So, I then tried to update the revChatGPT to 0.2.1.
Run the same command:
The following error is returned:
What am I missing? Any help is appreciated.