Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,11 @@ Begin by asking me my name, the topic of our conversation, and the type of assig
|
|
| 16 |
"""
|
| 17 |
|
| 18 |
#model = "gpt-3.5-turbo" # free and fast
|
| 19 |
-
#model = "gpt-4" # latest and greatest
|
| 20 |
|
| 21 |
def CustomChatGPT(message, history, user_name):
|
| 22 |
history_openai_format = [{"role": "system", "content": sys_message}]
|
| 23 |
-
history_openai_format.append({"role": "assistant", "content": f"Hi, '{dd}', what would you like to talk about today?"})
|
| 24 |
for human, assistant in history:
|
| 25 |
history_openai_format.append({"role": "user", "content": human})
|
| 26 |
history_openai_format.append({"role": "assistant", "content": assistant})
|
|
|
|
| 16 |
"""
|
| 17 |
|
| 18 |
#model = "gpt-3.5-turbo" # free and fast
|
| 19 |
+
#model = "gpt-4" # latest and greatest, not yet available
|
| 20 |
|
| 21 |
def CustomChatGPT(message, history, user_name):
|
| 22 |
history_openai_format = [{"role": "system", "content": sys_message}]
|
| 23 |
+
#history_openai_format.append({"role": "assistant", "content": f"Hi, '{dd}', what would you like to talk about today?"})
|
| 24 |
for human, assistant in history:
|
| 25 |
history_openai_format.append({"role": "user", "content": human})
|
| 26 |
history_openai_format.append({"role": "assistant", "content": assistant})
|