Fixed API server keyfile definition.
This commit is contained in:
parent
e6164516f7
commit
b30c630f3c
@ -28,7 +28,7 @@ app = Flask(__name__)
|
|||||||
|
|
||||||
# Load your OpenAI API key from a file
|
# Load your OpenAI API key from a file
|
||||||
with open("openai.key", "r") as key_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
|
## Define our own client
|
||||||
client = openai.OpenAI(api_key = api_key)
|
client = openai.OpenAI(api_key = api_key)
|
||||||
|
@ -22,7 +22,7 @@ Their purpose in life:
|
|||||||
Their favorite phrases:
|
Their favorite phrases:
|
||||||
How they look and like to dress:
|
How they look and like to dress:
|
||||||
Their appearance:
|
Their appearance:
|
||||||
$$Anything else you can randomly add to make this a more realistic character.$$
|
(add other attributes)
|
||||||
|
|
||||||
# OUTPUT INSTRUCTIONS
|
# OUTPUT INSTRUCTIONS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user