File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -171,3 +171,4 @@ poetry.toml
171
171
pyrightconfig.json
172
172
173
173
.task /
174
+ .confirmed-allow-chatgpt-to-run-code-on-my-computer
Original file line number Diff line number Diff line change 5
5
6
6
tasks :
7
7
serve :
8
+ interactive : true
9
+ silent : true
8
10
deps :
9
11
- install-deps
10
12
cmds :
13
+ - |
14
+ FILE=".confirmed-allow-chatgpt-to-run-code-on-my-computer"
15
+
16
+ if [ -f "$FILE" ]; then
17
+ exit 0
18
+ fi
19
+
20
+ echo "Are you sure you want to proceed? This will allow ChatGPT to execute code on your computer. (y/N)"
21
+ read -r REPLY
22
+ if [[ $REPLY =~ ^[Yy]$ ]]
23
+ then
24
+ # if 'Y' or 'y' was entered, the condition is true
25
+ touch $FILE
26
+ else
27
+ echo "Exiting..."
28
+ exit 1
29
+ fi
11
30
- poetry run uvicorn jupychat.main:app --reload --host "0.0.0.0" --port 8000
12
31
13
32
install-deps :
You can’t perform that action at this time.
0 commit comments