Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM gitpod/workspace-full-vnc
6 changes: 6 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
image:
file: .gitpod.Dockerfile

tasks:
- init: nvm i 18 && npm install && cp .env.example .env && npx prisma migrate deploy
command: npm run dev
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get install -y wget \
&& echo "Chrome: " && google-chrome --version
COPY package.json .
COPY package-lock.json .
COPY ./patches ./patches
RUN npm install
COPY . .
RUN npm run build
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ docker run -d --name chatgpt-api-single -e EMAIL=<YourOpenAIAccount> -e PASSWORD
# See log
docker logs -f chatgpt-api-single
```

For how generate session, all you need is your access token from https://chat.openai.com/api/auth/session
```sh
docker run -d --name chatgpt-api-single -e SESSION_TOKEN=<YourSesstion> -p 4000:4000 -v $PWD/data:/app/data ghcr.io/bytemate/chatapi-single:main
```
## Config

```sh
Expand Down
Loading