chainlit 2.0.3__py3-none-any.whl → 2.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of chainlit might be problematic. Click here for more details.

Files changed (48) hide show
  1. chainlit/auth/cookie.py +3 -2
  2. chainlit/config.py +9 -0
  3. chainlit/copilot/dist/index.js +1535 -1535
  4. chainlit/data/chainlit_data_layer.py +12 -6
  5. chainlit/element.py +1 -1
  6. chainlit/emitter.py +13 -0
  7. chainlit/frontend/dist/assets/{DailyMotion-C_XC7xJI.js → DailyMotion-DgnStuXc.js} +1 -1
  8. chainlit/frontend/dist/assets/{Dataframe-Cs4l4hA1.js → Dataframe-DawdSSSz.js} +1 -1
  9. chainlit/frontend/dist/assets/{Facebook-CUeCH7hk.js → Facebook-Dkb3dkMk.js} +1 -1
  10. chainlit/frontend/dist/assets/{FilePlayer-CB-fYkx8.js → FilePlayer-Dr99LCnS.js} +1 -1
  11. chainlit/frontend/dist/assets/{Kaltura-YX6qaq72.js → Kaltura-Dd2OL4Gx.js} +1 -1
  12. chainlit/frontend/dist/assets/{Mixcloud-DGV0ldjP.js → Mixcloud-Daz6VajP.js} +1 -1
  13. chainlit/frontend/dist/assets/{Mux-CmRss5oc.js → Mux-Dj_4KxDa.js} +1 -1
  14. chainlit/frontend/dist/assets/{Preview-DBVJn7-H.js → Preview-BM6sE6YJ.js} +1 -1
  15. chainlit/frontend/dist/assets/{SoundCloud-qLUb18oY.js → SoundCloud-BDq_zmWp.js} +1 -1
  16. chainlit/frontend/dist/assets/{Streamable-BvYP7bFp.js → Streamable-DEbcNGqP.js} +1 -1
  17. chainlit/frontend/dist/assets/{Twitch-CTHt-sGZ.js → Twitch-DCDKzjvH.js} +1 -1
  18. chainlit/frontend/dist/assets/{Vidyard-B-0mCJbm.js → Vidyard-BvNar4MT.js} +1 -1
  19. chainlit/frontend/dist/assets/{Vimeo-Dnp7ri8q.js → Vimeo-VW5C8KXV.js} +1 -1
  20. chainlit/frontend/dist/assets/{Wistia-DW0x_UBn.js → Wistia-DY3znsQk.js} +1 -1
  21. chainlit/frontend/dist/assets/{YouTube--98FipvA.js → YouTube-CwSKe0WO.js} +1 -1
  22. chainlit/frontend/dist/assets/{index-D71nZ46o.js → index-AmAHbFrh.js} +1449 -1449
  23. chainlit/frontend/dist/assets/index-UbcaGyQ2.css +1 -0
  24. chainlit/frontend/dist/assets/{react-plotly-Cn_BQTQw.js → react-plotly-LhBoPkZg.js} +1 -1
  25. chainlit/frontend/dist/index.html +2 -2
  26. chainlit/message.py +7 -0
  27. chainlit/server.py +2 -2
  28. chainlit/step.py +1 -0
  29. chainlit/translations/bn.json +168 -212
  30. chainlit/translations/en-US.json +167 -210
  31. chainlit/translations/gu.json +168 -212
  32. chainlit/translations/he-IL.json +167 -211
  33. chainlit/translations/hi.json +168 -212
  34. chainlit/translations/ja.json +191 -0
  35. chainlit/translations/kn.json +168 -212
  36. chainlit/translations/ml.json +168 -212
  37. chainlit/translations/mr.json +168 -212
  38. chainlit/translations/nl-NL.json +181 -223
  39. chainlit/translations/ta.json +168 -212
  40. chainlit/translations/te.json +168 -212
  41. chainlit/translations/zh-CN.json +167 -209
  42. chainlit/types.py +9 -0
  43. chainlit/version.py +1 -1
  44. {chainlit-2.0.3.dist-info → chainlit-2.0.5.dist-info}/METADATA +3 -3
  45. {chainlit-2.0.3.dist-info → chainlit-2.0.5.dist-info}/RECORD +47 -46
  46. chainlit/frontend/dist/assets/index-g8LTJwwr.css +0 -1
  47. {chainlit-2.0.3.dist-info → chainlit-2.0.5.dist-info}/WHEEL +0 -0
  48. {chainlit-2.0.3.dist-info → chainlit-2.0.5.dist-info}/entry_points.txt +0 -0
@@ -1,234 +1,191 @@
1
1
  {
2
- "components": {
3
- "atoms": {
4
- "buttons": {
5
- "userButton": {
6
- "menu": {
7
- "settings": "Settings",
8
- "settingsKey": "S",
9
- "APIKeys": "API Keys",
10
- "logout": "Logout"
11
- }
12
- }
13
- }
2
+ "common": {
3
+ "actions": {
4
+ "cancel": "Cancel",
5
+ "confirm": "Confirm",
6
+ "continue": "Continue",
7
+ "goBack": "Go Back",
8
+ "reset": "Reset",
9
+ "submit": "Submit"
14
10
  },
15
- "molecules": {
16
- "newChatButton": {
17
- "newChat": "New Chat"
18
- },
19
- "tasklist": {
20
- "TaskList": {
21
- "title": "🗒️ Task List",
22
- "loading": "Loading...",
23
- "error": "An error occurred"
11
+ "status": {
12
+ "loading": "Loading...",
13
+ "error": {
14
+ "default": "An error occurred",
15
+ "serverConnection": "Could not reach the server"
16
+ }
17
+ }
18
+ },
19
+ "auth": {
20
+ "login": {
21
+ "title": "Login to access the app",
22
+ "form": {
23
+ "email": {
24
+ "label": "Email address",
25
+ "required": "email is a required field"
26
+ },
27
+ "password": {
28
+ "label": "Password",
29
+ "required": "password is a required field"
30
+ },
31
+ "actions": {
32
+ "signin": "Sign In"
33
+ },
34
+ "alternativeText": {
35
+ "or": "OR"
24
36
  }
25
37
  },
26
- "attachments": {
27
- "cancelUpload": "Cancel upload",
28
- "removeAttachment": "Remove attachment"
29
- },
30
- "newChatDialog": {
31
- "createNewChat": "Create new chat?",
32
- "clearChat": "This will clear the current messages and start a new chat.",
33
- "cancel": "Cancel",
34
- "confirm": "Confirm"
35
- },
36
- "settingsModal": {
37
- "settings": "Settings",
38
- "expandMessages": "Expand Messages",
39
- "hideChainOfThought": "Hide Chain of Thought",
40
- "darkMode": "Dark Mode"
41
- },
42
- "detailsButton": {
38
+ "errors": {
39
+ "default": "Unable to sign in",
40
+ "signin": "Try signing in with a different account",
41
+ "oauthSignin": "Try signing in with a different account",
42
+ "redirectUriMismatch": "The redirect URI is not matching the oauth app configuration",
43
+ "oauthCallback": "Try signing in with a different account",
44
+ "oauthCreateAccount": "Try signing in with a different account",
45
+ "emailCreateAccount": "Try signing in with a different account",
46
+ "callback": "Try signing in with a different account",
47
+ "oauthAccountNotLinked": "To confirm your identity, sign in with the same account you used originally",
48
+ "emailSignin": "The e-mail could not be sent",
49
+ "emailVerify": "Please verify your email, a new email has been sent",
50
+ "credentialsSignin": "Sign in failed. Check the details you provided are correct",
51
+ "sessionRequired": "Please sign in to access this page"
52
+ }
53
+ },
54
+ "provider": {
55
+ "continue": "Continue with {{provider}}"
56
+ }
57
+ },
58
+ "chat": {
59
+ "input": {
60
+ "placeholder": "Type your message here...",
61
+ "actions": {
62
+ "send": "Send message",
63
+ "stop": "Stop Task",
64
+ "attachFiles": "Attach files"
65
+ }
66
+ },
67
+ "speech": {
68
+ "start": "Start recording",
69
+ "stop": "Stop recording",
70
+ "connecting": "Connecting"
71
+ },
72
+ "fileUpload": {
73
+ "dragDrop": "Drag and drop files here",
74
+ "browse": "Browse Files",
75
+ "sizeLimit": "Limit:",
76
+ "errors": {
77
+ "failed": "Failed to upload",
78
+ "cancelled": "Cancelled upload of"
79
+ }
80
+ },
81
+ "messages": {
82
+ "status": {
43
83
  "using": "Using",
44
84
  "used": "Used"
45
85
  },
46
- "auth": {
47
- "authLogin": {
48
- "title": "Login to access the app.",
49
- "form": {
50
- "email": "Email address",
51
- "password": "Password",
52
- "noAccount": "Don't have an account?",
53
- "alreadyHaveAccount": "Already have an account?",
54
- "signup": "Sign Up",
55
- "signin": "Sign In",
56
- "or": "OR",
57
- "continue": "Continue",
58
- "forgotPassword": "Forgot password?",
59
- "passwordMustContain": "Your password must contain:",
60
- "emailRequired": "email is a required field",
61
- "passwordRequired": "password is a required field"
62
- },
63
- "error": {
64
- "default": "Unable to sign in.",
65
- "signin": "Try signing in with a different account.",
66
- "oauthsignin": "Try signing in with a different account.",
67
- "redirect_uri_mismatch": "The redirect URI is not matching the oauth app configuration.",
68
- "oauthcallbackerror": "Try signing in with a different account.",
69
- "oauthcreateaccount": "Try signing in with a different account.",
70
- "emailcreateaccount": "Try signing in with a different account.",
71
- "callback": "Try signing in with a different account.",
72
- "oauthaccountnotlinked": "To confirm your identity, sign in with the same account you used originally.",
73
- "emailsignin": "The e-mail could not be sent.",
74
- "emailverify": "Please verify your email, a new email has been sent.",
75
- "credentialssignin": "Sign in failed. Check the details you provided are correct.",
76
- "sessionrequired": "Please sign in to access this page."
77
- }
78
- },
79
- "authVerifyEmail": {
80
- "almostThere": "You're almost there! We've sent an email to ",
81
- "verifyEmailLink": "Please click on the link in that email to complete your signup.",
82
- "didNotReceive": "Can't find the email?",
83
- "resendEmail": "Resend email",
84
- "goBack": "Go Back",
85
- "emailSent": "Email sent successfully.",
86
- "verifyEmail": "Verify your email address"
87
- },
88
- "providerButton": {
89
- "continue": "Continue with {{provider}}",
90
- "signup": "Sign up with {{provider}}"
91
- },
92
- "authResetPassword": {
93
- "newPasswordRequired": "New password is a required field",
94
- "passwordsMustMatch": "Passwords must match",
95
- "confirmPasswordRequired": "Confirm password is a required field",
96
- "newPassword": "New password",
97
- "confirmPassword": "Confirm password",
98
- "resetPassword": "Reset Password"
86
+ "actions": {
87
+ "copy": {
88
+ "button": "Copy to clipboard",
89
+ "success": "Copied!"
90
+ }
91
+ },
92
+ "feedback": {
93
+ "positive": "Helpful",
94
+ "negative": "Not helpful",
95
+ "edit": "Edit feedback",
96
+ "dialog": {
97
+ "title": "Add a comment",
98
+ "submit": "Submit feedback"
99
99
  },
100
- "authForgotPassword": {
101
- "email": "Email address",
102
- "emailRequired": "email is a required field",
103
- "emailSent": "Please check the email address {{email}} for instructions to reset your password.",
104
- "enterEmail": "Enter your email address and we will send you instructions to reset your password.",
105
- "resendEmail": "Resend email",
106
- "continue": "Continue",
107
- "goBack": "Go Back"
100
+ "status": {
101
+ "updating": "Updating",
102
+ "updated": "Feedback updated"
108
103
  }
109
104
  }
110
105
  },
111
- "organisms": {
112
- "chat": {
113
- "history": {
114
- "index": {
115
- "showHistory": "Show history",
116
- "lastInputs": "Last Inputs",
117
- "noInputs": "Such empty...",
118
- "loading": "Loading..."
119
- }
120
- },
121
- "inputBox": {
122
- "input": {
123
- "placeholder": "Type your message here..."
124
- },
125
- "speechButton": {
126
- "start": "Start recording",
127
- "stop": "Stop recording",
128
- "loading": "Connecting"
129
- },
130
- "SubmitButton": {
131
- "sendMessage": "Send message",
132
- "stopTask": "Stop Task"
133
- },
134
- "UploadButton": {
135
- "attachFiles": "Attach files"
136
- },
137
- "waterMark": {
138
- "text": "Built with"
139
- }
140
- },
141
- "Messages": {
142
- "index": {
143
- "running": "Running",
144
- "executedSuccessfully": "executed successfully",
145
- "failed": "failed",
146
- "feedbackUpdated": "Feedback updated",
147
- "updating": "Updating"
148
- },
149
- "copyButton": {
150
- "copyToClipboard": "Copy to clipboard",
151
- "copied": "Copied!"
152
- }
153
- },
154
- "dropScreen": {
155
- "dropYourFilesHere": "Drop your files here"
106
+ "history": {
107
+ "title": "Last Inputs",
108
+ "empty": "Such empty...",
109
+ "show": "Show history"
110
+ },
111
+ "settings": {
112
+ "title": "Settings panel"
113
+ },
114
+ "watermark": "Built with"
115
+ },
116
+ "threadHistory": {
117
+ "sidebar": {
118
+ "title": "Past Chats",
119
+ "filters": {
120
+ "search": "Search"
121
+ },
122
+ "timeframes": {
123
+ "today": "Today",
124
+ "yesterday": "Yesterday",
125
+ "previous7days": "Previous 7 days",
126
+ "previous30days": "Previous 30 days"
127
+ },
128
+ "empty": "No threads found",
129
+ "actions": {
130
+ "close": "Close sidebar",
131
+ "open": "Open sidebar"
132
+ }
133
+ },
134
+ "thread": {
135
+ "untitled": "Untitled Conversation",
136
+ "menu": {
137
+ "rename": "Rename",
138
+ "delete": "Delete"
156
139
  },
157
- "index": {
158
- "failedToUpload": "Failed to upload",
159
- "cancelledUploadOf": "Cancelled upload of",
160
- "couldNotReachServer": "Could not reach the server",
161
- "continuingChat": "Continuing previous chat"
140
+ "actions": {
141
+ "delete": {
142
+ "title": "Confirm deletion",
143
+ "description": "This will delete the thread as well as its messages and elements. This action cannot be undone",
144
+ "success": "Chat deleted",
145
+ "inProgress": "Deleting chat"
162
146
  },
163
- "settings": {
164
- "settingsPanel": "Settings panel",
165
- "reset": "Reset",
166
- "cancel": "Cancel",
167
- "confirm": "Confirm"
168
- }
169
- },
170
- "threadHistory": {
171
- "sidebar": {
172
- "filters": {
173
- "FeedbackSelect": {
174
- "feedbackAll": "Feedback: All",
175
- "feedbackPositive": "Feedback: Positive",
176
- "feedbackNegative": "Feedback: Negative"
177
- },
178
- "SearchBar": {
179
- "search": "Search"
147
+ "rename": {
148
+ "title": "Rename Thread",
149
+ "description": "Enter a new name for this thread",
150
+ "form": {
151
+ "name": {
152
+ "label": "Name",
153
+ "placeholder": "Enter new name"
180
154
  }
181
155
  },
182
- "DeleteThreadButton": {
183
- "confirmMessage": "This will delete the thread as well as its messages and elements.",
184
- "cancel": "Cancel",
185
- "confirm": "Confirm",
186
- "deletingChat": "Deleting chat",
187
- "chatDeleted": "Chat deleted"
188
- },
189
- "index": {
190
- "pastChats": "Past Chats"
191
- },
192
- "ThreadList": {
193
- "empty": "Empty...",
194
- "today": "Today",
195
- "yesterday": "Yesterday",
196
- "previous7days": "Previous 7 days",
197
- "previous30days": "Previous 30 days"
198
- },
199
- "TriggerButton": {
200
- "closeSidebar": "Close sidebar",
201
- "openSidebar": "Open sidebar"
202
- }
203
- },
204
- "Thread": {
205
- "backToChat": "Go back to chat",
206
- "chatCreatedOn": "This chat was created on"
156
+ "success": "Thread renamed!",
157
+ "inProgress": "Renaming thread"
207
158
  }
208
- },
209
- "header": {
210
- "chat": "Chat",
211
- "readme": "Readme"
212
159
  }
213
160
  }
214
161
  },
215
- "hooks": {
216
- "useLLMProviders": {
217
- "failedToFetchProviders": "Failed to fetch providers:"
218
- }
219
- },
220
- "pages": {
221
- "Design": {},
222
- "Env": {
223
- "savedSuccessfully": "Saved successfully",
224
- "requiredApiKeys": "Required API Keys",
225
- "requiredApiKeysInfo": "To use this app, the following API keys are required. The keys are stored on your device's local storage."
162
+ "navigation": {
163
+ "header": {
164
+ "chat": "Chat",
165
+ "readme": "Readme"
226
166
  },
227
- "Page": {
228
- "notPartOfProject": "You are not part of this project."
167
+ "newChat": {
168
+ "button": "New Chat",
169
+ "dialog": {
170
+ "title": "Create New Chat",
171
+ "description": "This will clear your current chat history. Are you sure you want to continue?",
172
+ "tooltip": "New Chat"
173
+ }
229
174
  },
230
- "ResumeButton": {
231
- "resumeChat": "Resume Chat"
175
+ "user": {
176
+ "menu": {
177
+ "settings": "Settings",
178
+ "settingsKey": "S",
179
+ "apiKeys": "API Keys",
180
+ "logout": "Logout"
181
+ }
182
+ }
183
+ },
184
+ "apiKeys": {
185
+ "title": "Required API Keys",
186
+ "description": "To use this app, the following API keys are required. The keys are stored on your device's local storage.",
187
+ "success": {
188
+ "saved": "Saved successfully"
232
189
  }
233
190
  }
234
191
  }