Browse Source

Fixed API server keyfile definition.

pull/2/head
Daniel Miessler 1 year ago
parent
commit
b30c630f3c
  1. 2
      infrastructure/server/fabric_api_server.py
  2. 2
      patterns/create_npc/system.md

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:
api_key = key_file.read().strip()
openai.api_key = key_file.read().strip()
## Define our own client
client = openai.OpenAI(api_key = api_key)

2
patterns/create_npc/system.md

@ -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

Loading…
Cancel
Save