Browse Source

Merge pull request #14 from sbehrens/bugfix/install

Fixes file pointer and adds a requirements dependency.
pull/17/head
Daniel Miessler 10 months ago committed by GitHub
parent
commit
d62bfa2d03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      infrastructure/server/fabric_api_server.py
  2. 1
      infrastructure/server/requirements.txt

2
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() openai.api_key = key_file.read().strip()
## Define our own client ## 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 # Read API tokens from the apikeys.json file

1
infrastructure/server/requirements.txt

@ -1,2 +1,3 @@
openai openai
requests requests
flask

Loading…
Cancel
Save