Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ def retry_last_response(history, model, temperature, num_calls):
|
|
301 |
|
302 |
return chatbot_interface(last_user_msg, history, model, temperature, num_calls)
|
303 |
|
304 |
-
def truncate_context(context, max_length=
|
305 |
"""Truncate the context to a maximum length."""
|
306 |
if len(context) <= max_length:
|
307 |
return context
|
|
|
301 |
|
302 |
return chatbot_interface(last_user_msg, history, model, temperature, num_calls)
|
303 |
|
304 |
+
def truncate_context(context, max_length=16000):
|
305 |
"""Truncate the context to a maximum length."""
|
306 |
if len(context) <= max_length:
|
307 |
return context
|