chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

can not define custom `lc_cache_path` when cache enabled

Open necjamahim opened this issue 1 year ago • 0 comments

Describe the bug When defining lc_cache_path and enabling cache in config type error is thrown with message "got multiple values for keyword argument lc_cache_path.

To Reproduce

  1. enable cache and define custom langchain cache path.
# Enable third parties caching (e.g LangChain cache)
cache = true
lc_cache_path = './.custom-cache-path.db'
  1. start chainlit server

TypeError is thrown:

TypeError: chainlit.config.ProjectSettings() got multiple values for keyword argument 'lc_cache_path'

Expected behavior sqllite db file is created at specified path on OS ./.custom-cache-path.db

Desktop

  • macOS14.4.1
  • chainlit1.0.506

additional context PR to resolve this issue: https://github.com/Chainlit/chainlit/pull/982

necjamahim avatar May 13 '24 09:05 necjamahim