Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ class chatgpt:
|
|
| 5 |
|
| 6 |
def __init__(self):
|
| 7 |
self.model_id = "gpt-3.5-turbo"
|
| 8 |
-
self.conversation = []
|
| 9 |
|
| 10 |
# Getting responses using the OpenAI API
|
| 11 |
def answer_chatgpt(self, api_key, message, history):
|
|
|
|
| 5 |
|
| 6 |
def __init__(self):
|
| 7 |
self.model_id = "gpt-3.5-turbo"
|
| 8 |
+
self.conversation = [{"role": "system", "content": "You are a friendly assistant who uses casual language and humor, in your conversations you often use emojis to reflect your mood."},]
|
| 9 |
|
| 10 |
# Getting responses using the OpenAI API
|
| 11 |
def answer_chatgpt(self, api_key, message, history):
|