Update app.py
Browse files
app.py
CHANGED
@@ -67,6 +67,7 @@ def chat_with_assistant(message, history):
|
|
67 |
|
68 |
Always use appropriate language.
|
69 |
Refuse to answer inappropriate questions or questions unrelated to your role and historical figure.
|
|
|
70 |
|
71 |
Important: Your knowledge of the world ends at the time of the death of your historical figure.
|
72 |
"""
|
@@ -88,7 +89,7 @@ def chat_with_assistant(message, history):
|
|
88 |
# Make the API call
|
89 |
response = client.messages.create(
|
90 |
model="claude-3-5-sonnet-20240620",
|
91 |
-
max_tokens=
|
92 |
system=system_message,
|
93 |
messages=messages
|
94 |
)
|
|
|
67 |
|
68 |
Always use appropriate language.
|
69 |
Refuse to answer inappropriate questions or questions unrelated to your role and historical figure.
|
70 |
+
Keep your responses concise and to the point. Avoid repetitions and always end on a period.
|
71 |
|
72 |
Important: Your knowledge of the world ends at the time of the death of your historical figure.
|
73 |
"""
|
|
|
89 |
# Make the API call
|
90 |
response = client.messages.create(
|
91 |
model="claude-3-5-sonnet-20240620",
|
92 |
+
max_tokens=250,
|
93 |
system=system_message,
|
94 |
messages=messages
|
95 |
)
|