commit acbe0816844eb9c92acb5efa56595f486deb27d1 Author: Moritz Date: Tue Oct 10 17:03:57 2023 +0200 init diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..3d31d4e --- /dev/null +++ b/.env.sample @@ -0,0 +1,3 @@ +TYPE=chatgpt + +OPENAI_API_KEY= diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ff0d8a0 --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/abra.sh b/abra.sh new file mode 100644 index 0000000..e69de29 diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..ba13cf0 --- /dev/null +++ b/compose.yml @@ -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 diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..ce3347b --- /dev/null +++ b/config.yaml @@ -0,0 +1,5 @@ +#api-key: "" +model: "gpt-3.5-turbo" +temperature: 1 +#max_tokens: 500 +markdown: true