|
| 1 | +[project] |
| 2 | +# List of environment variables to be provided by each user to use the app. |
| 3 | +user_env = [] |
| 4 | + |
| 5 | +# Duration (in seconds) during which the session is saved when the connection is lost |
| 6 | +session_timeout = 3600 |
| 7 | + |
| 8 | +# Duration (in seconds) of the user session expiry |
| 9 | +user_session_timeout = 1296000 # 15 days |
| 10 | + |
| 11 | +# Enable third parties caching (e.g., LangChain cache) |
| 12 | +cache = false |
| 13 | + |
| 14 | +# Whether to persist user environment variables (API keys) to the database |
| 15 | +# Set to true to store user env vars in DB, false to exclude them for security |
| 16 | +persist_user_env = false |
| 17 | + |
| 18 | +# Whether to mask user environment variables (API keys) in the UI with password type |
| 19 | +# Set to true to show API keys as ***, false to show them as plain text |
| 20 | +mask_user_env = false |
| 21 | + |
| 22 | +# Authorized origins |
| 23 | +allow_origins = ["*"] |
| 24 | + |
| 25 | +[features] |
| 26 | +# 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) |
| 27 | +unsafe_allow_html = false |
| 28 | + |
| 29 | +# Process and display mathematical expressions. This can clash with "$" characters in messages. |
| 30 | +latex = false |
| 31 | + |
| 32 | +# Autoscroll new user messages at the top of the window |
| 33 | +user_message_autoscroll = true |
| 34 | + |
| 35 | +# Automatically tag threads with the current chat profile (if a chat profile is used) |
| 36 | +auto_tag_thread = true |
| 37 | + |
| 38 | +# Allow users to edit their own messages |
| 39 | +edit_message = true |
| 40 | + |
| 41 | +[features.slack] |
| 42 | +# Add emoji reaction when message is received (requires reactions:write OAuth scope) |
| 43 | +reaction_on_message_received = false |
| 44 | + |
| 45 | +# Authorize users to spontaneously upload files with messages |
| 46 | +[features.spontaneous_file_upload] |
| 47 | + enabled = true |
| 48 | + # Define accepted file types using MIME types |
| 49 | + # Examples: |
| 50 | + # 1. For specific file types: |
| 51 | + # accept = ["image/jpeg", "image/png", "application/pdf"] |
| 52 | + # 2. For all files of certain type: |
| 53 | + # accept = ["image/*", "audio/*", "video/*"] |
| 54 | + # 3. For specific file extensions: |
| 55 | + # accept = { "application/octet-stream" = [".xyz", ".pdb"] } |
| 56 | + # Note: Using "*/*" is not recommended as it may cause browser warnings |
| 57 | + accept = ["*/*"] |
| 58 | + max_files = 20 |
| 59 | + max_size_mb = 500 |
| 60 | + |
| 61 | +[features.audio] |
| 62 | + # Enable audio features |
| 63 | + enabled = false |
| 64 | + # Sample rate of the audio |
| 65 | + sample_rate = 24000 |
| 66 | + |
| 67 | +[features.mcp] |
| 68 | + # Enable Model Context Protocol (MCP) features |
| 69 | + enabled = false |
| 70 | + |
| 71 | +[features.mcp.sse] |
| 72 | + enabled = true |
| 73 | + |
| 74 | +[features.mcp.streamable-http] |
| 75 | + enabled = true |
| 76 | + |
| 77 | +[features.mcp.stdio] |
| 78 | + enabled = true |
| 79 | + # Only the executables in the allow list can be used for MCP stdio server. |
| 80 | + # Only need the base name of the executable, e.g. "npx", not "/usr/bin/npx". |
| 81 | + # Please don't comment this line for now, we need it to parse the executable name. |
| 82 | + allowed_executables = [ "npx", "uvx" ] |
| 83 | + |
| 84 | +[UI] |
| 85 | +# Name of the assistant. |
| 86 | +name = "Assistant" |
| 87 | + |
| 88 | +# default_theme = "dark" |
| 89 | + |
| 90 | +# layout = "wide" |
| 91 | + |
| 92 | +# default_sidebar_state = "open" |
| 93 | + |
| 94 | +# Description of the assistant. This is used for HTML tags. |
| 95 | +# description = "" |
| 96 | + |
| 97 | +# Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full". |
| 98 | +cot = "full" |
| 99 | + |
| 100 | +# Specify a CSS file that can be used to customize the user interface. |
| 101 | +# The CSS file can be served from the public directory or via an external link. |
| 102 | +# custom_css = "/public/test.css" |
| 103 | + |
| 104 | +# Specify additional attributes for a custom CSS file |
| 105 | +# custom_css_attributes = "media=\"print\"" |
| 106 | + |
| 107 | +# Specify a JavaScript file that can be used to customize the user interface. |
| 108 | +# The JavaScript file can be served from the public directory. |
| 109 | +# custom_js = "/public/test.js" |
| 110 | + |
| 111 | +# The style of alert boxes. Can be "classic" or "modern". |
| 112 | +alert_style = "classic" |
| 113 | + |
| 114 | +# Specify additional attributes for custom JS file |
| 115 | +# custom_js_attributes = "async type = \"module\"" |
| 116 | + |
| 117 | +# Custom login page image, relative to public directory or external URL |
| 118 | +# login_page_image = "/public/custom-background.jpg" |
| 119 | + |
| 120 | +# Custom login page image filter (Tailwind internal filters, no dark/light variants) |
| 121 | +# login_page_image_filter = "brightness-50 grayscale" |
| 122 | +# login_page_image_dark_filter = "contrast-200 blur-sm" |
| 123 | + |
| 124 | + |
| 125 | +# Specify a custom meta image url. |
| 126 | +# custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png" |
| 127 | + |
| 128 | +# Load assistant logo directly from URL. |
| 129 | +logo_file_url = "" |
| 130 | + |
| 131 | +# Load assistant avatar image directly from URL. |
| 132 | +default_avatar_file_url = "" |
| 133 | + |
| 134 | +# Specify a custom build directory for the frontend. |
| 135 | +# This can be used to customize the frontend code. |
| 136 | +# Be careful: If this is a relative path, it should not start with a slash. |
| 137 | +# custom_build = "./public/build" |
| 138 | + |
| 139 | +# Specify optional one or more custom links in the header. |
| 140 | +# [[UI.header_links]] |
| 141 | +# name = "Issues" |
| 142 | +# display_name = "Report Issue" |
| 143 | +# icon_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4" |
| 144 | +# url = "https://github.com/Chainlit/chainlit/issues" |
| 145 | + |
| 146 | +[meta] |
| 147 | +generated_by = "2.7.2" |
0 commit comments