From 258b2fe9658ca829f327301e8cd6ade20607005b Mon Sep 17 00:00:00 2001 From: Nikoloz Turazashvili Date: Sun, 21 Jan 2024 13:00:36 +0400 Subject: [PATCH] changed the api_key value to be recognised by openAI client --- infrastructure/server/fabric_api_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/server/fabric_api_server.py b/infrastructure/server/fabric_api_server.py index 1503dd9..83ab930 100644 --- a/infrastructure/server/fabric_api_server.py +++ b/infrastructure/server/fabric_api_server.py @@ -28,7 +28,7 @@ app = Flask(__name__) # Load your OpenAI API key from a file with open("openai.key", "r") as key_file: - openai.api_key = key_file.read().strip() + api_key = key_file.read().strip() ## Define our own client client = openai.OpenAI(api_key = api_key)