summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2023-12-05 14:33:42 -0800
committerSchark <jordan@schark.online>2023-12-05 14:33:42 -0800
commit90e2e98f420b7b213ff16c1376a2905f10addb5f (patch)
treee352b92ed9ec39fd7a83166aeba8178c196d1f00
parent45cfb6e15597676f3f9be4c76a6ddc78076e2748 (diff)
downloadcli-gpt-90e2e98f420b7b213ff16c1376a2905f10addb5f.tar.gz
cli-gpt-90e2e98f420b7b213ff16c1376a2905f10addb5f.zip
Moving API key location to 'key', file restructure
-rw-r--r--.gitignore2
-rw-r--r--src/chat.py (renamed from chat.py)2
-rw-r--r--src/help.py (renamed from help.py)0
-rw-r--r--src/style.py (renamed from style.py)0
4 files changed, 2 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 59fe332..feba61d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
.venv/
__pycache__/
*.json
-token
+key
diff --git a/chat.py b/src/chat.py
index 1221d8e..cfa9819 100644
--- a/chat.py
+++ b/src/chat.py
@@ -12,7 +12,7 @@ from style import StyleLog
# Read in token from "token" file
# TODO: env variable in future?
-with open("token", "r") as file:
+with open("key", "r") as file:
token = file.readlines()
client = OpenAI(api_key=token[0].strip())
diff --git a/help.py b/src/help.py
index 9170241..9170241 100644
--- a/help.py
+++ b/src/help.py
diff --git a/style.py b/src/style.py
index ad616d8..ad616d8 100644
--- a/style.py
+++ b/src/style.py