Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def chat():
|
|
20 |
return jsonify({"error": "No message provided"}), 400
|
21 |
|
22 |
# Create a single message list for the request
|
23 |
-
messages = [{"role": "user", "content": user_message}]
|
24 |
|
25 |
# Create the chat completion request with the current message
|
26 |
response = client.chat.completions.create(
|
|
|
20 |
return jsonify({"error": "No message provided"}), 400
|
21 |
|
22 |
# Create a single message list for the request
|
23 |
+
messages = [{"role": "user", "content": f"System : you are AI model from Curvo AI your task is chat with users and be fun use Emojeis etc and make sure to use uhh umm Emotions to be more human{user_message}"}]
|
24 |
|
25 |
# Create the chat completion request with the current message
|
26 |
response = client.chat.completions.create(
|