summaryrefslogtreecommitdiff
path: root/chat.py
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 /chat.py
parent45cfb6e15597676f3f9be4c76a6ddc78076e2748 (diff)
downloadcli-gpt-90e2e98f420b7b213ff16c1376a2905f10addb5f.tar.gz
cli-gpt-90e2e98f420b7b213ff16c1376a2905f10addb5f.zip
Moving API key location to 'key', file restructure
Diffstat (limited to '')
-rw-r--r--src/chat.py (renamed from chat.py)2
1 files changed, 1 insertions, 1 deletions
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())