Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ def generate_arctic_response():
75
  prompt.append("")
76
  prompt_str = "\n".join(prompt)
77
 
78
- if get_num_tokens(prompt_str) >= 4096:
79
- st.error("Conversation length too long. Please keep it under 4096 tokens.")
80
  st.button('Clear chat history', on_click=clear_chat_history, key="clear_chat_history")
81
  st.stop()
82
 
 
75
  prompt.append("")
76
  prompt_str = "\n".join(prompt)
77
 
78
+ if get_num_tokens(prompt_str) >= 3072:
79
+ st.error("Conversation length too long. Please keep it under 3072 tokens.")
80
  st.button('Clear chat history', on_click=clear_chat_history, key="clear_chat_history")
81
  st.stop()
82