mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-11 14:35:09 -05:00
Fixed API server keyfile definition.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user