init
This commit is contained in:
commit
acbe081684
5 changed files with 33 additions and 0 deletions
3
.env.sample
Normal file
3
.env.sample
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TYPE=chatgpt
|
||||||
|
|
||||||
|
OPENAI_API_KEY=
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
0
abra.sh
Normal file
16
compose.yml
Normal file
16
compose.yml
Normal 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
5
config.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#api-key: ""
|
||||||
|
model: "gpt-3.5-turbo"
|
||||||
|
temperature: 1
|
||||||
|
#max_tokens: 500
|
||||||
|
markdown: true
|
Loading…
Reference in a new issue