This commit is contained in:
Moritz 2023-10-10 17:03:57 +02:00
commit acbe081684
5 changed files with 33 additions and 0 deletions

3
.env.sample Normal file
View File

@ -0,0 +1,3 @@
TYPE=chatgpt
OPENAI_API_KEY=

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3.12-alpine
RUN apk add --upgrade --no-cache git vim bash
RUN pip install --upgrade pip
RUN pip install --no-build-isolation git+https://github.com/marcolardera/chatgpt-cli
ENTRYPOINT [ "tail", "-f", "/dev/null" ]

0
abra.sh Normal file
View File

16
compose.yml Normal file
View File

@ -0,0 +1,16 @@
---
version: "3.8"
services:
app:
image: chatgpt
#build: .
environment:
- OPENAI_API_KEY
configs:
- source: config
target: /root/.config/chatgpt-cli/config.yaml
configs:
config:
name: config
file: config.yaml

5
config.yaml Normal file
View File

@ -0,0 +1,5 @@
#api-key: ""
model: "gpt-3.5-turbo"
temperature: 1
#max_tokens: 500
markdown: true