选项

enable_telemetry
bool
默认值:true

是否启用遥测(默认值:true)。不收集个人数据。

allow_origins
List[str]
默认值:["*"]

允许访问应用/copilot 的授权来源。

user_env
List[str]
默认值:[]

用户使用应用时需提供的环境变量列表。

session_timeout
int
默认值:3600

连接断开时保存会话的持续时间(秒)。

cache
bool
默认值:false

启用第三方缓存(例如 LangChain 缓存)

为资源挂载遵循符号链接(参见 https://github.com/Chainlit/chainlit/issues/317

默认配置

[project]
# Whether to enable telemetry (default: true). No personal data is collected.
enable_telemetry = true

# List of environment variables to be provided by each user to use the app.
user_env = []

# Duration (in seconds) during which the session is saved when the connection is lost
session_timeout = 3600

# Enable third parties caching (e.g LangChain cache)
cache = false

# Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
# follow_symlink = false