From 41fb7b2130830ad3f6af4ee6ad1f42b894000b1e Mon Sep 17 00:00:00 2001 From: agu3rra Date: Fri, 16 Feb 2024 20:48:05 -0300 Subject: [PATCH] removes initialization of API keys from server --- installer/server/api/fabric_api_server.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/installer/server/api/fabric_api_server.py b/installer/server/api/fabric_api_server.py index 1b87c4d..99344f7 100644 --- a/installer/server/api/fabric_api_server.py +++ b/installer/server/api/fabric_api_server.py @@ -35,15 +35,6 @@ def server_error(e): ## Did I mention this is HTTP only? Don't run this on the public internet. -## Set authentication on your APIs -## Let's at least have some kind of auth -load_dotenv() -openai.api_key = os.getenv("OPENAI_API_KEY") - -## Define our own client -client = openai.OpenAI(api_key = openai.api_key) - - # Read API tokens from the apikeys.json file api_keys = resources.read_text("installer.server.api", "fabric_api_keys.json") valid_tokens = json.loads(api_keys)