Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,8 @@ def get_config():
|
|
74 |
def chat():
|
75 |
data = request.json
|
76 |
api_key = data.get("api_key")
|
|
|
|
|
77 |
user_message = data.get("message")
|
78 |
|
79 |
if not api_key or not user_message:
|
|
|
74 |
def chat():
|
75 |
data = request.json
|
76 |
api_key = data.get("api_key")
|
77 |
+
os.environ["OPENAI_API_KEY"] = api_key
|
78 |
+
print("API Key Set.")
|
79 |
user_message = data.get("message")
|
80 |
|
81 |
if not api_key or not user_message:
|