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)