Browse Source

changed the api_key value to be recognised by openAI client

pull/3/head
Nikoloz Turazashvili 1 year ago
parent
commit
258b2fe965
  1. 2
      infrastructure/server/fabric_api_server.py

2
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)

Loading…
Cancel
Save