Giter Club home page Giter Club logo

Comments (5)

williamfzc avatar williamfzc commented on June 10, 2024

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.

1d3c0ab

You can try this version.

from chat-gpt-ppt.

williamfzc avatar williamfzc commented on June 10, 2024

This project has been rewritten with golang. This problem no longer exists.

from chat-gpt-ppt.

iglivetest avatar iglivetest commented on June 10, 2024

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

from chat-gpt-ppt.

williamfzc avatar williamfzc commented on June 10, 2024

Did you set a correct token (OpenAI official APIKEY) in token.txt?

from chat-gpt-ppt.

williamfzc avatar williamfzc commented on June 10, 2024

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.

https://github.com/williamfzc/chat-gpt-ppt#usage

from chat-gpt-ppt.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.