s4um1l commited on
Commit
e30f04c
·
1 Parent(s): e284564

feat: add chainlit configuration for better session handling

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