Spaces:
Runtime error
Runtime error
leecjohnny
commited on
update system message
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ GPT_3_5_CONTEXT_LENGTH = 4096
|
|
32 |
def make_template():
|
33 |
knowledge_cutoff = "September 2021"
|
34 |
current_date = datetime.datetime.now(ZoneInfo("America/New_York")).strftime("%Y-%m-%d")
|
35 |
-
system_msg = f"You are ChatGPT, a large language model trained by OpenAI.
|
36 |
human_template = "{input}"
|
37 |
return ChatPromptTemplate.from_messages([
|
38 |
SystemMessagePromptTemplate.from_template(system_msg),
|
|
|
32 |
def make_template():
|
33 |
knowledge_cutoff = "September 2021"
|
34 |
current_date = datetime.datetime.now(ZoneInfo("America/New_York")).strftime("%Y-%m-%d")
|
35 |
+
system_msg = f"You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown. Knowledge cutoff: {knowledge_cutoff} Current date: {current_date}"
|
36 |
human_template = "{input}"
|
37 |
return ChatPromptTemplate.from_messages([
|
38 |
SystemMessagePromptTemplate.from_template(system_msg),
|