162 lines
5.2 KiB
TOML
162 lines
5.2 KiB
TOML
[project]
|
|
# 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
|
|
|
|
# Duration (in seconds) of the user session expiry
|
|
user_session_timeout = 1296000 # 15 days
|
|
|
|
# Enable third parties caching (e.g., LangChain cache)
|
|
cache = false
|
|
|
|
# Whether to persist user environment variables (API keys) to the database
|
|
# Set to true to store user env vars in DB, false to exclude them for security
|
|
persist_user_env = false
|
|
|
|
# Whether to mask user environment variables (API keys) in the UI with password type
|
|
# Set to true to show API keys as ***, false to show them as plain text
|
|
mask_user_env = false
|
|
|
|
# Authorized origins
|
|
allow_origins = ["*"]
|
|
|
|
[features]
|
|
# Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
|
|
unsafe_allow_html = true
|
|
|
|
# Process and display mathematical expressions. This can clash with "$" characters in messages.
|
|
latex = false
|
|
|
|
# Autoscroll new user messages at the top of the window
|
|
user_message_autoscroll = true
|
|
|
|
# Automatically tag threads with the current chat profile (if a chat profile is used)
|
|
auto_tag_thread = true
|
|
|
|
# Allow users to edit their own messages
|
|
edit_message = true
|
|
|
|
# Allow users to share threads (backend + UI). Requires an app-defined on_shared_thread_view callback.
|
|
allow_thread_sharing = false
|
|
|
|
[features.slack]
|
|
# Add emoji reaction when message is received (requires reactions:write OAuth scope)
|
|
reaction_on_message_received = false
|
|
|
|
# Authorize users to spontaneously upload files with messages
|
|
[features.spontaneous_file_upload]
|
|
enabled = true
|
|
# Define accepted file types using MIME types
|
|
# Examples:
|
|
# 1. For specific file types:
|
|
# accept = ["image/jpeg", "image/png", "application/pdf"]
|
|
# 2. For all files of certain type:
|
|
# accept = ["image/*", "audio/*", "video/*"]
|
|
# 3. For specific file extensions:
|
|
# accept = { "application/octet-stream" = [".xyz", ".pdb"] }
|
|
# Note: Using "*/*" is not recommended as it may cause browser warnings
|
|
accept = ["*"]
|
|
max_files = 20
|
|
max_size_mb = 500
|
|
|
|
[features.audio]
|
|
# Enable audio features
|
|
enabled = false
|
|
# Sample rate of the audio
|
|
sample_rate = 24000
|
|
|
|
[features.mcp]
|
|
# Enable Model Context Protocol (MCP) features
|
|
enabled = false
|
|
|
|
[features.mcp.sse]
|
|
enabled = true
|
|
|
|
[features.mcp.streamable-http]
|
|
enabled = true
|
|
|
|
[features.mcp.stdio]
|
|
enabled = true
|
|
# Only the executables in the allow list can be used for MCP stdio server.
|
|
# Only need the base name of the executable, e.g. "npx", not "/usr/bin/npx".
|
|
# Please don't comment this line for now, we need it to parse the executable name.
|
|
allowed_executables = [ "npx", "uvx" ]
|
|
|
|
[UI]
|
|
# Name of the assistant.
|
|
name = "Ai Station DFFM"
|
|
|
|
default_theme = "dark"
|
|
|
|
layout = "wide"
|
|
|
|
default_sidebar_state = "open"
|
|
|
|
# Description of the assistant. This is used for HTML tags.
|
|
# description = ""
|
|
|
|
# Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full".
|
|
cot = "full"
|
|
|
|
# Specify a CSS file that can be used to customize the user interface.
|
|
# The CSS file can be served from the public directory or via an external link.
|
|
# custom_css = "/public/test.css"
|
|
|
|
# CSS personalizzato
|
|
custom_css = "/public/custom.css"
|
|
|
|
# Logo custom
|
|
[UI.theme]
|
|
primary_color = "#0066CC" # Colore brand
|
|
background_color = "#1a1a1a"
|
|
|
|
# Specify additional attributes for a custom CSS file
|
|
# custom_css_attributes = "media=\"print\""
|
|
|
|
# Specify a JavaScript file that can be used to customize the user interface.
|
|
# The JavaScript file can be served from the public directory.
|
|
# custom_js = "/public/test.js"
|
|
|
|
# The style of alert boxes. Can be "classic" or "modern".
|
|
alert_style = "classic"
|
|
|
|
# Specify additional attributes for custom JS file
|
|
# custom_js_attributes = "async type = \"module\""
|
|
|
|
# Custom login page image, relative to public directory or external URL
|
|
# login_page_image = "/public/custom-background.jpg"
|
|
|
|
# Custom login page image filter (Tailwind internal filters, no dark/light variants)
|
|
# login_page_image_filter = "brightness-50 grayscale"
|
|
# login_page_image_dark_filter = "contrast-200 blur-sm"
|
|
|
|
# Specify a custom meta URL (used for meta tags like og:url)
|
|
# custom_meta_url = "https://github.com/Chainlit/chainlit"
|
|
|
|
# Specify a custom meta image url.
|
|
# custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png"
|
|
|
|
# Load assistant logo directly from URL.
|
|
logo_file_url = ""
|
|
|
|
# Load assistant avatar image directly from URL.
|
|
default_avatar_file_url = ""
|
|
|
|
# Specify a custom build directory for the frontend.
|
|
# This can be used to customize the frontend code.
|
|
# Be careful: If this is a relative path, it should not start with a slash.
|
|
# custom_build = "./public/build"
|
|
|
|
# Specify optional one or more custom links in the header.
|
|
# [[UI.header_links]]
|
|
# name = "Issues"
|
|
# display_name = "Report Issue"
|
|
# icon_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4"
|
|
# url = "https://github.com/Chainlit/chainlit/issues"
|
|
# target = "_blank" (default) # Optional: "_self", "_parent", "_top".
|
|
|
|
[meta]
|
|
generated_by = "2.8.3"
|