bytemate / chatapi-single

Simple and powerful ChatGPT-API-Server
534 stars 75 forks source link

feat: use new session impl #28

Closed gengjiawen closed 1 year ago

gengjiawen commented 1 year ago

@fuergaosi233

fuergaosi233 commented 1 year ago

I want it to be able to log in with an account and password 🤔 we need add auth.

gengjiawen commented 1 year ago

I want it to be able to log in with an account and password 🤔 we need add auth.

The email login still exist, I only make the check not a must.

fuergaosi233 commented 1 year ago

I want it to be able to log in with an account and password 🤔 we need add auth.

The email login still exist, I only make the check not a must.

4.x does not include browser ChatGPT .

gengjiawen commented 1 year ago

I want it to be able to log in with an account and password 🤔 we need add auth.

The email login still exist, I only make the check not a must.

4.x does not include browser ChatGPT .

I have switch to waylaidwanderer/node-chatgpt-api for token. PTAL.

gengjiawen commented 1 year ago

For anyone want to try:

For how generate session, all you need is your access token from https://chat.openai.com/api/auth/session

docker run -d --name chatgpt-api-single -e HOST=0.0.0.0 -e SESSION_TOKEN=your_token -p 4000:4000 -v $PWD/docker:/app/data gengjiawen/chatgpt
gengjiawen commented 1 year ago

close in favor of https://github.com/bytemate/chatapi-single/pull/34