UI: make the markdown LRU cache infinite (for really long conversations)

This commit is contained in:
oobabooga 2024-07-24 11:54:26 -07:00
parent 3b2c23dfb5
commit 947016d010
2 changed files with 18 additions and 3 deletions

View file

@ -69,7 +69,7 @@ def replace_blockquote(m):
return m.group().replace('\n', '\n> ').replace('\\begin{blockquote}', '').replace('\\end{blockquote}', '')
@functools.lru_cache(maxsize=4096)
@functools.lru_cache(maxsize=None)
def convert_to_markdown(string):
# Quote to <q></q>