config.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. [project]
  2. # Whether to enable telemetry (default: true). No personal data is collected.
  3. enable_telemetry = true
  4. # List of environment variables to be provided by each user to use the app.
  5. user_env = []
  6. # Duration (in seconds) during which the session is saved when the connection is lost
  7. session_timeout = 3600
  8. # Duration (in seconds) of the user session expiry
  9. user_session_timeout = 1296000 # 15 days
  10. # Enable third parties caching (e.g., LangChain cache)
  11. cache = false
  12. # Authorized origins
  13. allow_origins = ["*"]
  14. [features]
  15. # 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)
  16. unsafe_allow_html = false
  17. # Process and display mathematical expressions. This can clash with "$" characters in messages.
  18. latex = false
  19. # Autoscroll new user messages at the top of the window
  20. user_message_autoscroll = true
  21. # Automatically tag threads with the current chat profile (if a chat profile is used)
  22. auto_tag_thread = true
  23. # Allow users to edit their own messages
  24. edit_message = true
  25. # Authorize users to spontaneously upload files with messages
  26. [features.spontaneous_file_upload]
  27. enabled = true
  28. # Define accepted file types using MIME types
  29. # Examples:
  30. # 1. For specific file types:
  31. # accept = ["image/jpeg", "image/png", "application/pdf"]
  32. # 2. For all files of certain type:
  33. # accept = ["image/*", "audio/*", "video/*"]
  34. # 3. For specific file extensions:
  35. # accept = { "application/octet-stream" = [".xyz", ".pdb"] }
  36. # Note: Using "*/*" is not recommended as it may cause browser warnings
  37. accept = ["*/*"]
  38. max_files = 20
  39. max_size_mb = 500
  40. [features.audio]
  41. # Sample rate of the audio
  42. sample_rate = 24000
  43. [features.mcp.sse]
  44. enabled = true
  45. [features.mcp.stdio]
  46. enabled = true
  47. # Only the executables in the allow list can be used for MCP stdio server.
  48. # Only need the base name of the executable, e.g. "npx", not "/usr/bin/npx".
  49. # Please don't comment this line for now, we need it to parse the executable name.
  50. allowed_executables = [ "npx", "uvx" ]
  51. [UI]
  52. # Name of the assistant.
  53. name = "Assistant"
  54. # default_theme = "dark"
  55. # layout = "wide"
  56. # default_sidebar_state = "open"
  57. # Description of the assistant. This is used for HTML tags.
  58. # description = ""
  59. # Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full".
  60. cot = "full"
  61. # Specify a CSS file that can be used to customize the user interface.
  62. # The CSS file can be served from the public directory or via an external link.
  63. # custom_css = "/public/test.css"
  64. # Specify additional attributes for a custom CSS file
  65. # custom_css_attributes = "media=\"print\""
  66. # Specify a JavaScript file that can be used to customize the user interface.
  67. # The JavaScript file can be served from the public directory.
  68. # custom_js = "/public/test.js"
  69. # Specify additional attributes for custom JS file
  70. # custom_js_attributes = "async type = \"module\""
  71. # Custom login page image, relative to public directory or external URL
  72. # login_page_image = "/public/custom-background.jpg"
  73. # Custom login page image filter (Tailwind internal filters, no dark/light variants)
  74. # login_page_image_filter = "brightness-50 grayscale"
  75. # login_page_image_dark_filter = "contrast-200 blur-sm"
  76. # Specify a custom meta image url.
  77. # custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png"
  78. # Specify a custom build directory for the frontend.
  79. # This can be used to customize the frontend code.
  80. # Be careful: If this is a relative path, it should not start with a slash.
  81. # custom_build = "./public/build"
  82. # Specify optional one or more custom links in the header.
  83. # [[UI.header_links]]
  84. # name = "Issues"
  85. # display_name = "Report Issue"
  86. # icon_url = "https://avatars.githubusercontent.com/u/128686189?s=200&v=4"
  87. # url = "https://github.com/Chainlit/chainlit/issues"
  88. [meta]
  89. generated_by = "2.5.5"