chainlit
chainlit copied to clipboard
can not define custom `lc_cache_path` when cache enabled
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
- 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'
- 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