Amm1rr / WebAI-to-API

Claude, Gemini to API : ) (Don't need API KEY)
MIT License
194 stars 39 forks source link

chatgpt: Incorrect API key provided #8

Closed johnd0e closed 10 months ago

johnd0e commented 10 months ago

http://127.0.0.1:8000/chatgpt fails, but http://127.0.0.1:8000/v1/chat/completions is ok.

P.S. I am testing with curl. But example_chatgpt1.py and example_chatgpt2.py work.

johnd0e commented 10 months ago

Fixed by changing "session_id": "session-ID" to "session_id": ""

But error message is confusing, I hope you can improve error handling for this case.

johnd0e commented 10 months ago

And the most important - it is not clear why we may need to specify the value already present in Config.conf?

It would be more useful to have ability to continue some previous conversation, specifying it's id.