Shreyas094 commited on
Commit
51c7f29
·
verified ·
1 Parent(s): d841d9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=30000):
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