Update .chainlit/config.toml
Browse files- .chainlit/config.toml +63 -33
.chainlit/config.toml
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
# Whether to enable telemetry (default: true). No personal data is collected.
|
3 |
enable_telemetry = true
|
4 |
|
|
|
5 |
# List of environment variables to be provided by each user to use the app.
|
6 |
user_env = []
|
7 |
|
@@ -11,43 +12,53 @@ session_timeout = 3600
|
|
11 |
# Enable third parties caching (e.g LangChain cache)
|
12 |
cache = false
|
13 |
|
|
|
|
|
|
|
14 |
# Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
|
15 |
-
|
16 |
|
17 |
[features]
|
18 |
-
#
|
19 |
-
prompt_playground = true
|
20 |
unsafe_allow_html = true
|
|
|
|
|
21 |
latex = false
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
accept = ["*/*"]
|
26 |
max_files = 20
|
27 |
max_size_mb = 500
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
#
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
#
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
|
40 |
-
|
|
|
41 |
|
42 |
-
# Description of the
|
43 |
-
# description = "
|
44 |
|
45 |
# Large size content are by default collapsed for a cleaner ui
|
46 |
default_collapse_content = true
|
47 |
|
48 |
-
# The default value for the expand messages settings.
|
49 |
-
default_expand_messages = true
|
50 |
-
|
51 |
# Hide the chain of thought details from the user in the UI.
|
52 |
hide_cot = false
|
53 |
|
@@ -58,31 +69,50 @@ hide_cot = false
|
|
58 |
# The CSS file can be served from the public directory or via an external link.
|
59 |
custom_css = "/public/stylesheet.css"
|
60 |
|
|
|
|
|
|
|
|
|
61 |
# Specify a custom font url.
|
62 |
custom_font = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
# Override default MUI light theme. (Check theme.ts)
|
65 |
[UI.theme.light]
|
66 |
#background = "#FAFAFA"
|
67 |
#paper = "#FFFFFF"
|
68 |
-
background = "#212121"
|
69 |
-
#paper = "#586e75"
|
70 |
|
71 |
[UI.theme.light.primary]
|
72 |
-
main = "#
|
73 |
-
dark = "#
|
74 |
#light = "#FFE7EB"
|
|
|
|
|
|
|
75 |
|
76 |
# Override default MUI dark theme. (Check theme.ts)
|
77 |
[UI.theme.dark]
|
78 |
-
background = "#
|
79 |
-
#paper = "#
|
80 |
|
81 |
[UI.theme.dark.primary]
|
82 |
-
main = "#
|
83 |
-
dark = "#
|
84 |
-
light = "#FFE7EB"
|
85 |
-
|
|
|
|
|
86 |
|
87 |
[meta]
|
88 |
-
generated_by = "
|
|
|
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 |
|
|
|
12 |
# Enable third parties caching (e.g LangChain cache)
|
13 |
cache = false
|
14 |
|
15 |
+
# Authorized origins
|
16 |
+
allow_origins = ["*"]
|
17 |
+
|
18 |
# Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
|
19 |
+
follow_symlink = false
|
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 = true
|
24 |
+
|
25 |
+
# Process and display mathematical expressions. This can clash with "$" characters in messages.
|
26 |
latex = false
|
27 |
+
|
28 |
+
# Automatically tag threads with the current chat profile (if a chat profile is used)
|
29 |
+
auto_tag_thread = true
|
30 |
+
|
31 |
+
# Authorize users to spontaneously upload files with messages
|
32 |
+
[features.spontaneous_file_upload]
|
33 |
+
enabled = true
|
34 |
accept = ["*/*"]
|
35 |
max_files = 20
|
36 |
max_size_mb = 500
|
37 |
|
38 |
+
[features.audio]
|
39 |
+
# Threshold for audio recording
|
40 |
+
min_decibels = -45
|
41 |
+
# Delay for the user to start speaking in MS
|
42 |
+
initial_silence_timeout = 3000
|
43 |
+
# Delay for the user to continue speaking in MS. If the user stops speaking for this duration, the recording will stop.
|
44 |
+
silence_timeout = 1500
|
45 |
+
# Above this duration (MS), the recording will forcefully stop.
|
46 |
+
max_duration = 15000
|
47 |
+
# Duration of the audio chunks in MS
|
48 |
+
chunk_duration = 1000
|
49 |
+
# Sample rate of the audio
|
50 |
+
sample_rate = 44100
|
51 |
|
52 |
+
[UI]
|
53 |
+
# Name of the assistant.
|
54 |
+
name = "Doc Chain Assistant"
|
55 |
|
56 |
+
# Description of the assistant. This is used for HTML tags.
|
57 |
+
# description = ""
|
58 |
|
59 |
# Large size content are by default collapsed for a cleaner ui
|
60 |
default_collapse_content = true
|
61 |
|
|
|
|
|
|
|
62 |
# Hide the chain of thought details from the user in the UI.
|
63 |
hide_cot = false
|
64 |
|
|
|
69 |
# The CSS file can be served from the public directory or via an external link.
|
70 |
custom_css = "/public/stylesheet.css"
|
71 |
|
72 |
+
# Specify a Javascript file that can be used to customize the user interface.
|
73 |
+
# The Javascript file can be served from the public directory.
|
74 |
+
# custom_js = "/public/test.js"
|
75 |
+
|
76 |
# Specify a custom font url.
|
77 |
custom_font = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
|
78 |
|
79 |
+
# Specify a custom meta image url.
|
80 |
+
custom_meta_image_url = "/public/logo-ofipe.jpg"
|
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 |
+
[UI.theme]
|
88 |
+
default = "dark"
|
89 |
+
layout = "wide"
|
90 |
+
font_family = "Inter, sans-serif"
|
91 |
# Override default MUI light theme. (Check theme.ts)
|
92 |
[UI.theme.light]
|
93 |
#background = "#FAFAFA"
|
94 |
#paper = "#FFFFFF"
|
|
|
|
|
95 |
|
96 |
[UI.theme.light.primary]
|
97 |
+
#main = "#F80061"
|
98 |
+
#dark = "#980039"
|
99 |
#light = "#FFE7EB"
|
100 |
+
[UI.theme.light.text]
|
101 |
+
#primary = "#212121"
|
102 |
+
#secondary = "#616161"
|
103 |
|
104 |
# Override default MUI dark theme. (Check theme.ts)
|
105 |
[UI.theme.dark]
|
106 |
+
#background = "#FAFAFA"
|
107 |
+
#paper = "#FFFFFF"
|
108 |
|
109 |
[UI.theme.dark.primary]
|
110 |
+
#main = "#F80061"
|
111 |
+
#dark = "#980039"
|
112 |
+
#light = "#FFE7EB"
|
113 |
+
[UI.theme.dark.text]
|
114 |
+
#primary = "#EEEEEE"
|
115 |
+
#secondary = "#BDBDBD"
|
116 |
|
117 |
[meta]
|
118 |
+
generated_by = "1.1.300rc4"
|