chainlit 2.7.0__py3-none-any.whl → 2.7.1__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 (85) hide show
  1. {chainlit-2.7.0.dist-info → chainlit-2.7.1.dist-info}/METADATA +1 -1
  2. chainlit-2.7.1.dist-info/RECORD +4 -0
  3. chainlit/__init__.py +0 -207
  4. chainlit/__main__.py +0 -4
  5. chainlit/_utils.py +0 -8
  6. chainlit/action.py +0 -33
  7. chainlit/auth/__init__.py +0 -95
  8. chainlit/auth/cookie.py +0 -197
  9. chainlit/auth/jwt.py +0 -42
  10. chainlit/cache.py +0 -45
  11. chainlit/callbacks.py +0 -433
  12. chainlit/chat_context.py +0 -64
  13. chainlit/chat_settings.py +0 -34
  14. chainlit/cli/__init__.py +0 -235
  15. chainlit/config.py +0 -621
  16. chainlit/context.py +0 -112
  17. chainlit/data/__init__.py +0 -111
  18. chainlit/data/acl.py +0 -19
  19. chainlit/data/base.py +0 -107
  20. chainlit/data/chainlit_data_layer.py +0 -687
  21. chainlit/data/dynamodb.py +0 -616
  22. chainlit/data/literalai.py +0 -501
  23. chainlit/data/sql_alchemy.py +0 -741
  24. chainlit/data/storage_clients/__init__.py +0 -0
  25. chainlit/data/storage_clients/azure.py +0 -84
  26. chainlit/data/storage_clients/azure_blob.py +0 -94
  27. chainlit/data/storage_clients/base.py +0 -28
  28. chainlit/data/storage_clients/gcs.py +0 -101
  29. chainlit/data/storage_clients/s3.py +0 -88
  30. chainlit/data/utils.py +0 -29
  31. chainlit/discord/__init__.py +0 -6
  32. chainlit/discord/app.py +0 -364
  33. chainlit/element.py +0 -454
  34. chainlit/emitter.py +0 -450
  35. chainlit/hello.py +0 -12
  36. chainlit/input_widget.py +0 -182
  37. chainlit/langchain/__init__.py +0 -6
  38. chainlit/langchain/callbacks.py +0 -682
  39. chainlit/langflow/__init__.py +0 -25
  40. chainlit/llama_index/__init__.py +0 -6
  41. chainlit/llama_index/callbacks.py +0 -206
  42. chainlit/logger.py +0 -16
  43. chainlit/markdown.py +0 -57
  44. chainlit/mcp.py +0 -99
  45. chainlit/message.py +0 -619
  46. chainlit/mistralai/__init__.py +0 -50
  47. chainlit/oauth_providers.py +0 -835
  48. chainlit/openai/__init__.py +0 -53
  49. chainlit/py.typed +0 -0
  50. chainlit/secret.py +0 -9
  51. chainlit/semantic_kernel/__init__.py +0 -111
  52. chainlit/server.py +0 -1616
  53. chainlit/session.py +0 -304
  54. chainlit/sidebar.py +0 -55
  55. chainlit/slack/__init__.py +0 -6
  56. chainlit/slack/app.py +0 -427
  57. chainlit/socket.py +0 -381
  58. chainlit/step.py +0 -490
  59. chainlit/sync.py +0 -43
  60. chainlit/teams/__init__.py +0 -6
  61. chainlit/teams/app.py +0 -348
  62. chainlit/translations/bn.json +0 -214
  63. chainlit/translations/el-GR.json +0 -214
  64. chainlit/translations/en-US.json +0 -214
  65. chainlit/translations/fr-FR.json +0 -214
  66. chainlit/translations/gu.json +0 -214
  67. chainlit/translations/he-IL.json +0 -214
  68. chainlit/translations/hi.json +0 -214
  69. chainlit/translations/ja.json +0 -214
  70. chainlit/translations/kn.json +0 -214
  71. chainlit/translations/ml.json +0 -214
  72. chainlit/translations/mr.json +0 -214
  73. chainlit/translations/nl.json +0 -214
  74. chainlit/translations/ta.json +0 -214
  75. chainlit/translations/te.json +0 -214
  76. chainlit/translations/zh-CN.json +0 -214
  77. chainlit/translations.py +0 -60
  78. chainlit/types.py +0 -334
  79. chainlit/user.py +0 -43
  80. chainlit/user_session.py +0 -153
  81. chainlit/utils.py +0 -173
  82. chainlit/version.py +0 -8
  83. chainlit-2.7.0.dist-info/RECORD +0 -84
  84. {chainlit-2.7.0.dist-info → chainlit-2.7.1.dist-info}/WHEEL +0 -0
  85. {chainlit-2.7.0.dist-info → chainlit-2.7.1.dist-info}/entry_points.txt +0 -0
@@ -1,214 +0,0 @@
1
- {
2
- "common": {
3
- "actions": {
4
- "cancel": "రద్దు చేయండి",
5
- "confirm": "నిర్ధారించండి",
6
- "continue": "కొనసాగించండి",
7
- "goBack": "వెనక్కి వెళ్ళండి",
8
- "reset": "రీసెట్ చేయండి",
9
- "submit": "సమర్పించండి"
10
- },
11
- "status": {
12
- "loading": "లోడ్ అవుతోంది...",
13
- "error": {
14
- "default": "లోపం సంభవించింది",
15
- "serverConnection": "సర్వర్‌ని చేరుకోలేకపోయాము"
16
- }
17
- }
18
- },
19
- "auth": {
20
- "login": {
21
- "title": "యాప్‌ని ఉపయోగించడానికి లాగిన్ చేయండి",
22
- "form": {
23
- "email": {
24
- "label": "ఇమెయిల్ చిరునామా",
25
- "required": "ఇమెయిల్ తప్పనిసరి"
26
- },
27
- "password": {
28
- "label": "పాస్‌వర్డ్",
29
- "required": "పాస్‌వర్డ్ తప్పనిసరి"
30
- },
31
- "actions": {
32
- "signin": "సైన్ ఇన్ చేయండి"
33
- },
34
- "alternativeText": {
35
- "or": "లేదా"
36
- }
37
- },
38
- "errors": {
39
- "default": "సైన్ ఇన్ చేయలేకపోయాము",
40
- "signin": "వేరే ఖాతాతో సైన్ ఇన్ చేయడానికి ప్రయత్నించండి",
41
- "oauthSignin": "వేరే ఖాతాతో సైన్ ఇన్ చేయడానికి ప్రయత్నించండి",
42
- "redirectUriMismatch": "రీడైరెక్ట్ URI oauth యాప్ కాన్ఫిగరేషన్‌తో సరిపోలడం లేదు",
43
- "oauthCallback": "వేరే ఖాతాతో సైన్ ఇన్ చేయడానికి ప్రయత్నించండి",
44
- "oauthCreateAccount": "వేరే ఖాతాతో సైన్ ఇన్ చేయడానికి ప్రయత్నించండి",
45
- "emailCreateAccount": "వేరే ఖాతాతో సైన్ ఇన్ చేయడానికి ప్రయత్నించండి",
46
- "callback": "వేరే ఖాతాతో సైన్ ఇన్ చేయడానికి ప్రయత్నించండి",
47
- "oauthAccountNotLinked": "మీ గుర్తింపును నిర్ధారించడానికి, మీరు మొదట ఉపయోగించిన అదే ఖాతాతో సైన్ ఇన్ చేయండి",
48
- "emailSignin": "ఇమెయిల్ పంపడం సాధ్యం కాలేదు",
49
- "emailVerify": "దయచేసి మీ ఇమెయిల్‌ని ధృవీకరించండి, కొత్త ఇమెయిల్ పంపబడింది",
50
- "credentialsSignin": "సైన్ ఇన్ విఫలమైంది. మీరు అందించిన వివరాలు సరైనవేనా అని తనిఖీ చేయండి",
51
- "sessionRequired": "ఈ పేజీని యాక్సెస్ చేయడానికి దయచేసి సైన్ ఇన్ చేయండి"
52
- }
53
- },
54
- "provider": {
55
- "continue": "{{provider}}తో కొనసాగించండి"
56
- }
57
- },
58
- "chat": {
59
- "input": {
60
- "placeholder": "మీ సందేశాన్ని ఇక్కడ టైప్ చేయండి...",
61
- "actions": {
62
- "send": "సందేశం పంపండి",
63
- "stop": "పని ఆపండి",
64
- "attachFiles": "ఫైల్స్ జోడించండి"
65
- }
66
- },
67
- "speech": {
68
- "start": "రికార్డింగ్ ప్రారంభించండి",
69
- "stop": "రికార్డింగ్ ఆపండి",
70
- "connecting": "అనుసంధానిస్తోంది"
71
- },
72
- "fileUpload": {
73
- "dragDrop": "ఫైల్స్‌ని ఇక్కడ డ్రాగ్ చేసి డ్రాప్ చేయండి",
74
- "browse": "ఫైల్స్ బ్రౌజ్ చేయండి",
75
- "sizeLimit": "పరిమితి:",
76
- "errors": {
77
- "failed": "అప్‌లోడ్ విఫలమైంది",
78
- "cancelled": "అప్‌లోడ్ రద్దు చేయబడింది"
79
- }
80
- },
81
- "messages": {
82
- "status": {
83
- "using": "ఉపయోగిస్తోంది",
84
- "used": "ఉపయోగించబడింది"
85
- },
86
- "actions": {
87
- "copy": {
88
- "button": "క్లిప్‌బోర్డ్‌కి కాపీ చేయండి",
89
- "success": "కాపీ చేయబడింది!"
90
- }
91
- },
92
- "feedback": {
93
- "positive": "సహాయకరం",
94
- "negative": "సహాయకరం కాదు",
95
- "edit": "అభిప్రాయాన్ని సవరించండి",
96
- "dialog": {
97
- "title": "వ్యాఖ్య జోడించండి",
98
- "submit": "అభిప్రాయాన్ని సమర్పించండి"
99
- },
100
- "status": {
101
- "updating": "నవీకరిస్తోంది",
102
- "updated": "అభిప్రాయం నవీకరించబడింది"
103
- }
104
- }
105
- },
106
- "history": {
107
- "title": "చివరి ఇన్‌పుట్‌లు",
108
- "empty": "ఖాళీగా ఉంది...",
109
- "show": "చరిత్రను చూపించు"
110
- },
111
- "settings": {
112
- "title": "సెట్టింగ్‌ల ప్యానెల్"
113
- },
114
- "watermark": "LLMలు తప్పులు చేయవచ్చు. ముఖ్యమైన సమాచారాన్ని తనిఖీ చేయడాన్ని పరిగణించండి."
115
- },
116
- "threadHistory": {
117
- "sidebar": {
118
- "title": "గత చాట్‌లు",
119
- "filters": {
120
- "search": "వెతకండి",
121
- "placeholder": "Search conversations..."
122
- },
123
- "timeframes": {
124
- "today": "ఈరోజు",
125
- "yesterday": "నిన్న",
126
- "previous7days": "గత 7 రోజులు",
127
- "previous30days": "గత 30 రోజులు"
128
- },
129
- "empty": "థ్రెడ్‌లు కనుగొనబడలేదు",
130
- "actions": {
131
- "close": "సైడ్‌బార్ మూసివేయండి",
132
- "open": "సైడ్‌బార్ తెరవండి"
133
- }
134
- },
135
- "thread": {
136
- "untitled": "పేరు లేని సంభాషణ",
137
- "menu": {
138
- "rename": "Rename",
139
- "delete": "Delete"
140
- },
141
- "actions": {
142
- "delete": {
143
- "title": "తొలగింపును నిర్ధారించండి",
144
- "description": "ఇది థ్రెడ్‌తో పాటు దాని సందేశాలను మరియు అంశాలను తొలగిస్తుంది. ఈ చర్యను రద్దు చేయలేరు",
145
- "success": "చాట్ తొలగించబడింది",
146
- "inProgress": "చాట్‌ని తొలగిస్తోంది"
147
- },
148
- "rename": {
149
- "title": "థ్రెడ్ పేరు మార్చండి",
150
- "description": "ఈ థ్రెడ్ కోసం కొత్త పేరును నమోదు చేయండి",
151
- "form": {
152
- "name": {
153
- "label": "పేరు",
154
- "placeholder": "కొత్త పేరును నమోదు చేయండి"
155
- }
156
- },
157
- "success": "థ్రెడ్ పేరు మార్చబడింది!",
158
- "inProgress": "థ్రెడ్ పేరు మారుస్తోంది"
159
- }
160
- }
161
- }
162
- },
163
- "navigation": {
164
- "header": {
165
- "chat": "చాట్",
166
- "readme": "చదవండి",
167
- "theme": {
168
- "light": "Light Theme",
169
- "dark": "Dark Theme",
170
- "system": "Follow System"
171
- }
172
- },
173
- "newChat": {
174
- "button": "కొత్త చాట్",
175
- "dialog": {
176
- "title": "కొత్త చాట్ సృష్టించండి",
177
- "description": "ఇది మీ ప్రస్తుత చాట్ చరిత్రను తుడిచివేస్తుంది. మీరు కొనసాగించాలనుకుంటున్నారా?",
178
- "tooltip": "కొత్త చాట్"
179
- }
180
- },
181
- "user": {
182
- "menu": {
183
- "settings": "సెట్టింగ్‌లు",
184
- "settingsKey": "S",
185
- "apiKeys": "API కీలు",
186
- "logout": "లాగ్ అవుట్"
187
- }
188
- }
189
- },
190
- "apiKeys": {
191
- "title": "అవసరమైన API కీలు",
192
- "description": "ఈ యాప్‌ని ఉపయోగించడానికి, కింది API కీలు అవసరం. కీలు మీ పరికరం యొక్క స్థానిక నిల్వలో నిల్వ చేయబడతాయి.",
193
- "success": {
194
- "saved": "విజయవంతంగా సేవ్ చేయబడింది"
195
- }
196
- },
197
- "alerts": {
198
- "info": "Info",
199
- "note": "Note",
200
- "tip": "Tip",
201
- "important": "Important",
202
- "warning": "Warning",
203
- "caution": "Caution",
204
- "debug": "Debug",
205
- "example": "Example",
206
- "success": "Success",
207
- "help": "Help",
208
- "idea": "Idea",
209
- "pending": "Pending",
210
- "security": "Security",
211
- "beta": "Beta",
212
- "best-practice": "Best Practice"
213
- }
214
- }
@@ -1,214 +0,0 @@
1
- {
2
- "common": {
3
- "actions": {
4
- "cancel": "取消",
5
- "confirm": "确认",
6
- "continue": "继续",
7
- "goBack": "返回",
8
- "reset": "重置",
9
- "submit": "提交"
10
- },
11
- "status": {
12
- "loading": "加载中...",
13
- "error": {
14
- "default": "发生错误",
15
- "serverConnection": "无法连接到服务器"
16
- }
17
- }
18
- },
19
- "auth": {
20
- "login": {
21
- "title": "登录以访问应用",
22
- "form": {
23
- "email": {
24
- "label": "电子邮箱",
25
- "required": "邮箱是必填项"
26
- },
27
- "password": {
28
- "label": "密码",
29
- "required": "密码是必填项"
30
- },
31
- "actions": {
32
- "signin": "登录"
33
- },
34
- "alternativeText": {
35
- "or": "或"
36
- }
37
- },
38
- "errors": {
39
- "default": "无法登录",
40
- "signin": "请尝试使用其他账号登录",
41
- "oauthSignin": "请尝试使用其他账号登录",
42
- "redirectUriMismatch": "重定向URI与OAuth应用配置不匹配",
43
- "oauthCallback": "请尝试使用其他账号登录",
44
- "oauthCreateAccount": "请尝试使用其他账号登录",
45
- "emailCreateAccount": "请尝试使用其他账号登录",
46
- "callback": "请尝试使用其他账号登录",
47
- "oauthAccountNotLinked": "为确认您的身份,请使用原始账号登录",
48
- "emailSignin": "邮件发送失败",
49
- "emailVerify": "请验证您的邮箱,新的验证邮件已发送",
50
- "credentialsSignin": "登录失败。请检查您提供的信息是否正确",
51
- "sessionRequired": "请登录以访问此页面"
52
- }
53
- },
54
- "provider": {
55
- "continue": "继续使用{{provider}}"
56
- }
57
- },
58
- "chat": {
59
- "input": {
60
- "placeholder": "在此输入您的消息...",
61
- "actions": {
62
- "send": "发送消息",
63
- "stop": "停止任务",
64
- "attachFiles": "附加文件"
65
- }
66
- },
67
- "speech": {
68
- "start": "开始录音",
69
- "stop": "停止录音",
70
- "connecting": "连接中"
71
- },
72
- "fileUpload": {
73
- "dragDrop": "将文件拖放到这里",
74
- "browse": "浏览文件",
75
- "sizeLimit": "限制:",
76
- "errors": {
77
- "failed": "上传失败",
78
- "cancelled": "已取消上传"
79
- }
80
- },
81
- "messages": {
82
- "status": {
83
- "using": "使用中",
84
- "used": "已使用"
85
- },
86
- "actions": {
87
- "copy": {
88
- "button": "复制到剪贴板",
89
- "success": "已复制!"
90
- }
91
- },
92
- "feedback": {
93
- "positive": "有帮助",
94
- "negative": "没有帮助",
95
- "edit": "编辑反馈",
96
- "dialog": {
97
- "title": "添加评论",
98
- "submit": "提交反馈"
99
- },
100
- "status": {
101
- "updating": "更新中",
102
- "updated": "反馈已更新"
103
- }
104
- }
105
- },
106
- "history": {
107
- "title": "最近输入",
108
- "empty": "空空如也...",
109
- "show": "显示历史"
110
- },
111
- "settings": {
112
- "title": "设置面板"
113
- },
114
- "watermark": "大语言模型可能会犯错。请核实重要信息。"
115
- },
116
- "threadHistory": {
117
- "sidebar": {
118
- "title": "历史对话",
119
- "filters": {
120
- "search": "搜索",
121
- "placeholder": "搜索会话..."
122
- },
123
- "timeframes": {
124
- "today": "今天",
125
- "yesterday": "昨天",
126
- "previous7days": "过去7天",
127
- "previous30days": "过去30天"
128
- },
129
- "empty": "未找到对话",
130
- "actions": {
131
- "close": "关闭侧边栏",
132
- "open": "打开侧边栏"
133
- }
134
- },
135
- "thread": {
136
- "untitled": "未命名对话",
137
- "menu": {
138
- "rename": "重命名",
139
- "delete": "删除"
140
- },
141
- "actions": {
142
- "delete": {
143
- "title": "确认删除",
144
- "description": "这将删除该对话及其所有消息和元素。此操作无法撤销",
145
- "success": "对话已删除",
146
- "inProgress": "正在删除对话"
147
- },
148
- "rename": {
149
- "title": "重命名对话",
150
- "description": "为此对话输入新名称",
151
- "form": {
152
- "name": {
153
- "label": "名称",
154
- "placeholder": "输入新名称"
155
- }
156
- },
157
- "success": "对话已重命名!",
158
- "inProgress": "正在重命名对话"
159
- }
160
- }
161
- }
162
- },
163
- "navigation": {
164
- "header": {
165
- "chat": "聊天",
166
- "readme": "说明",
167
- "theme": {
168
- "light": "浅色主题",
169
- "dark": "深色主题",
170
- "system": "跟随系统"
171
- }
172
- },
173
- "newChat": {
174
- "button": "新建对话",
175
- "dialog": {
176
- "title": "创建新对话",
177
- "description": "这将清除您当前的聊天记录。确定要继续吗?",
178
- "tooltip": "新建对话"
179
- }
180
- },
181
- "user": {
182
- "menu": {
183
- "settings": "设置",
184
- "settingsKey": "S",
185
- "apiKeys": "API密钥",
186
- "logout": "退出登录"
187
- }
188
- }
189
- },
190
- "apiKeys": {
191
- "title": "所需API密钥",
192
- "description": "使用此应用需要以下API密钥。这些密钥存储在您设备的本地存储中。",
193
- "success": {
194
- "saved": "保存成功"
195
- }
196
- },
197
- "alerts": {
198
- "info": "信息",
199
- "note": "注释",
200
- "tip": "提示",
201
- "important": "重要",
202
- "warning": "警告",
203
- "caution": "注意",
204
- "debug": "调试",
205
- "example": "示例",
206
- "success": "成功",
207
- "help": "帮助",
208
- "idea": "想法",
209
- "pending": "待处理",
210
- "security": "安全",
211
- "beta": "测试",
212
- "best-practice": "最佳实践"
213
- }
214
- }
chainlit/translations.py DELETED
@@ -1,60 +0,0 @@
1
- # TODO:
2
- # - Support linting plural
3
- # - Support interpolation
4
-
5
-
6
- def compare_json_structures(truth, to_compare, path=""):
7
- """
8
- Compare the structure of two deeply nested JSON objects.
9
- Args:
10
- truth (dict): The 'truth' JSON object.
11
- to_compare (dict): The 'to_compare' JSON object.
12
- path (str): The current path for error reporting (used internally).
13
- Returns:
14
- A list of differences found.
15
- """
16
- if not isinstance(truth, dict) or not isinstance(to_compare, dict):
17
- raise ValueError("Both inputs must be dictionaries.")
18
-
19
- errors = []
20
-
21
- truth_keys = set(truth.keys())
22
- to_compare_keys = set(to_compare.keys())
23
-
24
- extra_keys = to_compare_keys - truth_keys
25
- missing_keys = truth_keys - to_compare_keys
26
-
27
- for key in extra_keys:
28
- errors.append(f"⚠️ Extra key: '{path + '.' + key if path else key}'")
29
-
30
- for key in missing_keys:
31
- errors.append(f"❌ Missing key: '{path + '.' + key if path else key}'")
32
-
33
- for key in truth_keys & to_compare_keys:
34
- if isinstance(truth[key], dict) and isinstance(to_compare[key], dict):
35
- # Recursive call to navigate through nested dictionaries
36
- errors += compare_json_structures(
37
- truth[key], to_compare[key], path + "." + key if path else key
38
- )
39
- elif not isinstance(truth[key], dict) and not isinstance(to_compare[key], dict):
40
- # If both are not dicts, we are at leaf nodes and structure matches; skip value comparison
41
- continue
42
- else:
43
- # Structure mismatch: one is a dict, the other is not
44
- errors.append(
45
- f"❌ Structure mismatch at: '{path + '.' + key if path else key}'"
46
- )
47
-
48
- return errors
49
-
50
-
51
- def lint_translation_json(file, truth, to_compare):
52
- print(f"\nLinting {file}...")
53
-
54
- errors = compare_json_structures(truth, to_compare)
55
-
56
- if errors:
57
- for error in errors:
58
- print(f"{error}")
59
- else:
60
- print(f"✅ No errors found in {file}")