From d85691e2578220930dd410d218addf19991f04e5 Mon Sep 17 00:00:00 2001 From: Scott Behrens Date: Wed, 31 Jan 2024 09:07:13 -0800 Subject: [PATCH] fixes apikey bug in client code --- 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..9bf34ac 100644 --- a/infrastructure/server/fabric_api_server.py +++ b/infrastructure/server/fabric_api_server.py @@ -31,7 +31,7 @@ with open("openai.key", "r") as key_file: openai.api_key = key_file.read().strip() ## Define our own client -client = openai.OpenAI(api_key = api_key) +client = openai.OpenAI(api_key = openai.api_key) # Read API tokens from the apikeys.json file