Fixed API server keyfile definition.

This commit is contained in:
Daniel Miessler 2024-01-20 21:03:26 -08:00
parent e6164516f7
commit b30c630f3c
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ app = Flask(__name__)
# Load your OpenAI API key from a file
with open("openai.key", "r") as key_file:
api_key = key_file.read().strip()
openai.api_key = key_file.read().strip()
## Define our own client
client = openai.OpenAI(api_key = api_key)

View File

@ -22,7 +22,7 @@ Their purpose in life:
Their favorite phrases:
How they look and like to dress:
Their appearance:
$$Anything else you can randomly add to make this a more realistic character.$$
(add other attributes)
# OUTPUT INSTRUCTIONS