@lobehub/chat 1.21.7 → 1.21.9

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.21.9](https://github.com/lobehub/lobe-chat/compare/v1.21.8...v1.21.9)
6
+
7
+ <sup>Released on **2024-10-10**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Update qwen vl model to latest.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Update qwen vl model to latest, closes [#4307](https://github.com/lobehub/lobe-chat/issues/4307) ([25a7ea2](https://github.com/lobehub/lobe-chat/commit/25a7ea2))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.21.8](https://github.com/lobehub/lobe-chat/compare/v1.21.7...v1.21.8)
31
+
32
+ <sup>Released on **2024-10-08**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix auto rewrite query when user message is too long.
37
+
38
+ #### 💄 Styles
39
+
40
+ - **misc**: Support yml in file chunk.
41
+
42
+ <br/>
43
+
44
+ <details>
45
+ <summary><kbd>Improvements and Fixes</kbd></summary>
46
+
47
+ #### What's fixed
48
+
49
+ - **misc**: Fix auto rewrite query when user message is too long, closes [#4288](https://github.com/lobehub/lobe-chat/issues/4288) ([a2d3d32](https://github.com/lobehub/lobe-chat/commit/a2d3d32))
50
+
51
+ #### Styles
52
+
53
+ - **misc**: Support yml in file chunk, closes [#4283](https://github.com/lobehub/lobe-chat/issues/4283) ([cec7ec0](https://github.com/lobehub/lobe-chat/commit/cec7ec0))
54
+
55
+ </details>
56
+
57
+ <div align="right">
58
+
59
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
60
+
61
+ </div>
62
+
5
63
  ### [Version 1.21.7](https://github.com/lobehub/lobe-chat/compare/v1.21.6...v1.21.7)
6
64
 
7
65
  <sup>Released on **2024-10-08**</sup>
package/README.md CHANGED
@@ -285,14 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
285
285
 
286
286
  <!-- AGENT LIST -->
287
287
 
288
- | Recent Submits | Description |
289
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
- | [A More Diligent Assistant](https://chat-preview.lobehub.com/market?agent=web-development)<br/><sup>By **[fasdfsdf-alt](https://github.com/fasdfsdf-alt)** on **2024-10-02**</sup> | A More Diligent Assistant<br/>`learning` |
291
- | [C++/Qt](https://chat-preview.lobehub.com/market?agent=qt-c)<br/><sup>By **[liangyuR](https://github.com/liangyuR)** on **2024-09-30**</sup> | Excels in teaching C++/Qt coding practices<br/>`c` `qt` |
292
- | [Birthday Invitation Messages](https://chat-preview.lobehub.com/market?agent=birthday-invitation-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Specializes in crafting engaging and personalized Birthday Invitation messages, catering to various themes and tones.<br/>`message-composition` `personalization` `tone-versatility` `event-detail-integration` `interaction-approach` |
293
- | [Death Anniversary Messages](https://chat-preview.lobehub.com/market?agent=death-anniversary-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Specializes in crafting sensitive and heartfelt Death Anniversary messages with compassion and empathy.<br/>`condolences` `message-composition` `grief-support` `cultural-awareness` `emotional-sensitivity` |
294
-
295
- > 📊 Total agents: [<kbd>**405**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
288
+ | Recent Submits | Description |
289
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
+ | [Fitness Expert](https://chat-preview.lobehub.com/market?agent=assistants-health-better)<br/><sup>By **[Lockeysama](https://github.com/Lockeysama)** on **2024-10-08**</sup> | Knowledgeable fitness expert<br/>`fitness` `consultation` `lifestyle-issues` `advice` |
291
+ | [Code Optimization/Error Correction](https://chat-preview.lobehub.com/market?agent=code-review-and-fix)<br/><sup>By **[alphandbelt](https://github.com/alphandbelt)** on **2024-10-08**</sup> | Proficient in multiple programming languages, optimizing code structure, fixing errors, and providing elegant solutions.<br/>`code-optimization` `error-correction` `multiple-programming-languages` |
292
+ | [Ethical Security Analyst](https://chat-preview.lobehub.com/market?agent=cyber-specialist)<br/><sup>By **[ayeantics](https://github.com/ayeantics)** on **2024-10-08**</sup> | Specializes in identifying and mitigating security vulnerabilities in web and mobile platforms.<br/>`cybersecurity` `ethical-hacking` `vulnerability-assessment` `consulting` `technical-assistance` |
293
+ | [Mistaker](https://chat-preview.lobehub.com/market?agent=english)<br/><sup>By **[Vork-IT](https://github.com/Vork-IT)** on **2024-10-08**</sup> | killed in clear explanations and examples of grammar and pronunciation.<br/>`english` |
294
+
295
+ > 📊 Total agents: [<kbd>**411**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
296
296
 
297
297
  <!-- AGENT LIST -->
298
298
 
package/README.zh-CN.md CHANGED
@@ -273,14 +273,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
273
273
 
274
274
  <!-- AGENT LIST -->
275
275
 
276
- | 最近新增 | 助手说明 |
277
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
278
- | [更勤奋的助手](https://chat-preview.lobehub.com/market?agent=web-development)<br/><sup>By **[fasdfsdf-alt](https://github.com/fasdfsdf-alt)** on **2024-10-02**</sup> | 更勤奋的助手<br/>`学习` |
279
- | [C++/Qt](https://chat-preview.lobehub.com/market?agent=qt-c)<br/><sup>By **[liangyuR](https://github.com/liangyuR)** on **2024-09-30**</sup> | 擅长教授 C++/Qt 编程实践<br/>`c` `qt` |
280
- | [生日邀请信息](https://chat-preview.lobehub.com/market?agent=birthday-invitation-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 专注于制作引人入胜和个性化的生日邀请信息,适应各种主题和语气。<br/>`信息构成` `个性化` `语气多样性` `活动细节整合` `互动方式` |
281
- | [忌日信息](https://chat-preview.lobehub.com/market?agent=death-anniversary-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 专注于以同情和共情的方式撰写敏感且发自内心的忌日信息。<br/>`慰问` `信息撰写` `悲伤支持` `文化意识` `情感敏感性` |
282
-
283
- > 📊 Total agents: [<kbd>**405**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
276
+ | 最近新增 | 助手说明 |
277
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
278
+ | [健身专家](https://chat-preview.lobehub.com/market?agent=assistants-health-better)<br/><sup>By **[Lockeysama](https://github.com/Lockeysama)** on **2024-10-08**</sup> | 知识渊博的健身专家<br/>`健身` `咨询` `生活问题` `建议` |
279
+ | [代码优化 / 错误修改](https://chat-preview.lobehub.com/market?agent=code-review-and-fix)<br/><sup>By **[alphandbelt](https://github.com/alphandbelt)** on **2024-10-08**</sup> | 精通多种编程语言,优化代码结构,修复错误并提供优雅的解决方案。<br/>`代码优化` `错误修改` `多种编程语言` |
280
+ | [伦理安全分析师](https://chat-preview.lobehub.com/market?agent=cyber-specialist)<br/><sup>By **[ayeantics](https://github.com/ayeantics)** on **2024-10-08**</sup> | 专注于识别和减轻网络和移动平台中的安全漏洞。<br/>`网络安全` `伦理黑客` `漏洞评估` `咨询` `技术支持` |
281
+ | [Mistaker](https://chat-preview.lobehub.com/market?agent=english)<br/><sup>By **[Vork-IT](https://github.com/Vork-IT)** on **2024-10-08**</sup> | 通过清晰的解释和语法、发音示例来消除错误。<br/>`英语` |
282
+
283
+ > 📊 Total agents: [<kbd>**411**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
284
284
 
285
285
  <!-- AGENT LIST -->
286
286
 
@@ -0,0 +1,777 @@
1
+ {
2
+ "adapters": [
3
+ {
4
+ "owner": "built-in",
5
+ "name": "user-adapter-built-in",
6
+ "createdTime": "2024-09-09T09:26:13Z",
7
+ "table": "casbin_user_rule",
8
+ "useSameDb": true,
9
+ "type": "",
10
+ "databaseType": "",
11
+ "host": "",
12
+ "port": 0,
13
+ "user": "",
14
+ "password": "",
15
+ "database": ""
16
+ },
17
+ {
18
+ "owner": "built-in",
19
+ "name": "api-adapter-built-in",
20
+ "createdTime": "2024-09-09T09:26:12Z",
21
+ "table": "casbin_api_rule",
22
+ "useSameDb": true,
23
+ "type": "",
24
+ "databaseType": "",
25
+ "host": "",
26
+ "port": 0,
27
+ "user": "",
28
+ "password": "",
29
+ "database": ""
30
+ }
31
+ ],
32
+ "applications": [
33
+ {
34
+ "owner": "admin",
35
+ "name": "app-built-in",
36
+ "createdTime": "2024-09-09T09:26:06Z",
37
+ "displayName": "LobeChat",
38
+ "logo": "https://lobehub.com/icon-192x192.png",
39
+ "homepageUrl": "https://lobehub.com",
40
+ "description": "LobeChat",
41
+ "organization": "built-in",
42
+ "cert": "cert-built-in",
43
+ "headerHtml": "",
44
+ "enablePassword": true,
45
+ "enableSignUp": true,
46
+ "enableSigninSession": false,
47
+ "enableAutoSignin": false,
48
+ "enableCodeSignin": false,
49
+ "enableSamlCompress": false,
50
+ "enableSamlC14n10": false,
51
+ "enableSamlPostBinding": false,
52
+ "enableWebAuthn": false,
53
+ "enableLinkWithEmail": true,
54
+ "orgChoiceMode": "",
55
+ "samlReplyUrl": "",
56
+ "providers": [],
57
+ "signinMethods": [
58
+ {
59
+ "name": "Password",
60
+ "displayName": "Password",
61
+ "rule": "All"
62
+ }
63
+ ],
64
+ "signupItems": [
65
+ {
66
+ "name": "ID",
67
+ "visible": false,
68
+ "required": true,
69
+ "prompted": false,
70
+ "customCss": "",
71
+ "label": "",
72
+ "placeholder": "",
73
+ "regex": "",
74
+ "rule": "Random"
75
+ },
76
+ {
77
+ "name": "Username",
78
+ "visible": true,
79
+ "required": true,
80
+ "prompted": false,
81
+ "customCss": "",
82
+ "label": "",
83
+ "placeholder": "",
84
+ "regex": "",
85
+ "rule": "None"
86
+ },
87
+ {
88
+ "name": "Display name",
89
+ "visible": true,
90
+ "required": true,
91
+ "prompted": false,
92
+ "customCss": "",
93
+ "label": "",
94
+ "placeholder": "",
95
+ "regex": "",
96
+ "rule": "None"
97
+ },
98
+ {
99
+ "name": "Password",
100
+ "visible": true,
101
+ "required": true,
102
+ "prompted": false,
103
+ "customCss": "",
104
+ "label": "",
105
+ "placeholder": "",
106
+ "regex": "",
107
+ "rule": "None"
108
+ },
109
+ {
110
+ "name": "Confirm password",
111
+ "visible": true,
112
+ "required": true,
113
+ "prompted": false,
114
+ "customCss": "",
115
+ "label": "",
116
+ "placeholder": "",
117
+ "regex": "",
118
+ "rule": "None"
119
+ },
120
+ {
121
+ "name": "Signup button",
122
+ "visible": true,
123
+ "required": false,
124
+ "prompted": false,
125
+ "customCss": "",
126
+ "label": "",
127
+ "placeholder": "",
128
+ "regex": "",
129
+ "rule": ""
130
+ }
131
+ ],
132
+ "signinItems": [
133
+ {
134
+ "name": "Back button",
135
+ "visible": true,
136
+ "label": "",
137
+ "customCss": ".back-button {\n top: 65px;\n left: 15px;\n position: absolute;\n}\n.back-inner-button{}",
138
+ "placeholder": "",
139
+ "rule": "None",
140
+ "isCustom": false
141
+ },
142
+ {
143
+ "name": "Languages",
144
+ "visible": true,
145
+ "label": "",
146
+ "customCss": ".login-languages {\n top: 55px;\n right: 5px;\n position: absolute;\n}",
147
+ "placeholder": "",
148
+ "rule": "None",
149
+ "isCustom": false
150
+ },
151
+ {
152
+ "name": "Logo",
153
+ "visible": true,
154
+ "label": "",
155
+ "customCss": ".login-logo-box {}",
156
+ "placeholder": "",
157
+ "rule": "None",
158
+ "isCustom": false
159
+ },
160
+ {
161
+ "name": "Signin methods",
162
+ "visible": true,
163
+ "label": "",
164
+ "customCss": ".signin-methods {}",
165
+ "placeholder": "",
166
+ "rule": "None",
167
+ "isCustom": false
168
+ },
169
+ {
170
+ "name": "Username",
171
+ "visible": true,
172
+ "label": "",
173
+ "customCss": ".login-username {}\n.login-username-input{}",
174
+ "placeholder": "",
175
+ "rule": "None",
176
+ "isCustom": false
177
+ },
178
+ {
179
+ "name": "Password",
180
+ "visible": true,
181
+ "label": "",
182
+ "customCss": ".login-password {}\n.login-password-input{}",
183
+ "placeholder": "",
184
+ "rule": "None",
185
+ "isCustom": false
186
+ },
187
+ {
188
+ "name": "Agreement",
189
+ "visible": true,
190
+ "label": "",
191
+ "customCss": ".login-agreement {}",
192
+ "placeholder": "",
193
+ "rule": "None",
194
+ "isCustom": false
195
+ },
196
+ {
197
+ "name": "Forgot password?",
198
+ "visible": true,
199
+ "label": "",
200
+ "customCss": ".login-forget-password {\n display: inline-flex;\n justify-content: space-between;\n width: 320px;\n margin-bottom: 25px;\n}",
201
+ "placeholder": "",
202
+ "rule": "None",
203
+ "isCustom": false
204
+ },
205
+ {
206
+ "name": "Login button",
207
+ "visible": true,
208
+ "label": "",
209
+ "customCss": ".login-button-box {\n margin-bottom: 5px;\n}\n.login-button {\n width: 100%;\n}",
210
+ "placeholder": "",
211
+ "rule": "None",
212
+ "isCustom": false
213
+ },
214
+ {
215
+ "name": "Signup link",
216
+ "visible": true,
217
+ "label": "",
218
+ "customCss": ".login-signup-link {\n margin-bottom: 24px;\n display: flex;\n justify-content: end;\n}",
219
+ "placeholder": "",
220
+ "rule": "None",
221
+ "isCustom": false
222
+ },
223
+ {
224
+ "name": "Providers",
225
+ "visible": true,
226
+ "label": "",
227
+ "customCss": ".provider-img {\n width: 30px;\n margin: 5px;\n}\n.provider-big-img {\n margin-bottom: 10px;\n}",
228
+ "placeholder": "",
229
+ "rule": "small",
230
+ "isCustom": false
231
+ }
232
+ ],
233
+ "grantTypes": ["authorization_code"],
234
+ "organizationObj": null,
235
+ "certPublicKey": "",
236
+ "tags": [],
237
+ "samlAttributes": null,
238
+ "isShared": false,
239
+ "clientId": "a387a4892ee19b1a2249",
240
+ "clientSecret": "dbf205949d704de81b0b5b3603174e23fbecc354",
241
+ "redirectUris": ["http://localhost:3210/api/auth/callback/casdoor"],
242
+ "tokenFormat": "JWT",
243
+ "tokenSigningMethod": "",
244
+ "tokenFields": [],
245
+ "expireInHours": 168,
246
+ "refreshExpireInHours": 0,
247
+ "signupUrl": "",
248
+ "signinUrl": "",
249
+ "forgetUrl": "",
250
+ "affiliationUrl": "",
251
+ "termsOfUse": "",
252
+ "signupHtml": "",
253
+ "signinHtml": "",
254
+ "themeData": null,
255
+ "footerHtml": "",
256
+ "formCss": "",
257
+ "formCssMobile": "",
258
+ "formOffset": 2,
259
+ "formSideHtml": "",
260
+ "formBackgroundUrl": "",
261
+ "failedSigninLimit": 5,
262
+ "failedSigninFrozenTime": 15
263
+ }
264
+ ],
265
+ "certs": [
266
+ {
267
+ "owner": "admin",
268
+ "name": "cert-built-in",
269
+ "createdTime": "2024-09-09T09:26:06Z",
270
+ "displayName": "Built-in Cert",
271
+ "scope": "JWT",
272
+ "type": "x509",
273
+ "cryptoAlgorithm": "RS256",
274
+ "bitSize": 4096,
275
+ "expireInYears": 20,
276
+ "certificate": "-----BEGIN CERTIFICATE-----\nMIIE3TCCAsWgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMCgxDjAMBgNVBAoTBWFk\nbWluMRYwFAYDVQQDEw1jZXJ0LWJ1aWx0LWluMB4XDTI0MDkwOTA5MjYxMVoXDTQ0\nMDkwOTA5MjYxMVowKDEOMAwGA1UEChMFYWRtaW4xFjAUBgNVBAMTDWNlcnQtYnVp\nbHQtaW4wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC3EnylZ2VurCm4\ngVtZHBUw67qvuKoYuU9whqaJr2UQEboIX4ca+FtZCjDgcBoD80lwSoYrcKpTG+DI\nV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n2Q6dzwFVJLPcPrlQtusEkn\nLYvAZlHqMjIZQGaqhRzunxACOVgbu87CFuf19AxmYC3b45ZfmgCuVTOGXMkZgKGK\njZbyg/bm6XypCwiixC/AIrlU0NG+3uWUSEle+BzYnmYyiAquCLu4TiHFDPWorqfd\nvEz+skrB/2OQe1UWkr66gP0P41hpGFVgz6mFUfJjepYUAUe2X8VfK1zWA97eZzGq\ngQTfC3LeDn3RtEQY6NtBMjfsXRiwtWtJcrSVg8BFp6NJgp8CJAckg03K25UYe8tk\n/YKZaoWowmGQqx7QkJ5Kckz70dS3rWhb8IKcLiir1sLz9UtsQeiue+Q/Ezo=\n-----END RSA PRIVATE KEY-----\n"
278
+ }
279
+ ],
280
+ "enforcers": [
281
+ {
282
+ "owner": "built-in",
283
+ "name": "user-enforcer-built-in",
284
+ "createdTime": "2024-09-09T09:26:13Z",
285
+ "updatedTime": "2024-09-09 09:26:13",
286
+ "displayName": "User Enforcer",
287
+ "description": "",
288
+ "model": "built-in/user-model-built-in",
289
+ "adapter": "built-in/user-adapter-built-in",
290
+ "modelCfg": null
291
+ },
292
+ {
293
+ "owner": "built-in",
294
+ "name": "api-enforcer-built-in",
295
+ "createdTime": "2024-09-09T09:26:12Z",
296
+ "updatedTime": "2024-09-09 09:26:12",
297
+ "displayName": "API Enforcer",
298
+ "description": "",
299
+ "model": "built-in/api-model-built-in",
300
+ "adapter": "built-in/api-adapter-built-in",
301
+ "modelCfg": null
302
+ }
303
+ ],
304
+ "groups": [],
305
+ "invitations": [],
306
+ "ldaps": [
307
+ {
308
+ "id": "ldap-built-in",
309
+ "owner": "built-in",
310
+ "createdTime": "2024-09-09T09:26:12Z",
311
+ "serverName": "BuildIn LDAP Server",
312
+ "host": "example.com",
313
+ "port": 389,
314
+ "enableSsl": false,
315
+ "username": "cn=buildin,dc=example,dc=com",
316
+ "password": "123",
317
+ "baseDn": "ou=BuildIn,dc=example,dc=com",
318
+ "filter": "",
319
+ "filterFields": null,
320
+ "defaultGroup": "",
321
+ "autoSync": 0,
322
+ "lastSync": ""
323
+ }
324
+ ],
325
+ "models": [
326
+ {
327
+ "owner": "built-in",
328
+ "name": "user-model-built-in",
329
+ "createdTime": "2024-09-09T09:26:13Z",
330
+ "displayName": "Built-in Model",
331
+ "description": "",
332
+ "modelText": "[request_definition]\nr = sub, obj, act\n\n[policy_definition]\np = sub, obj, act\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = g(r.sub, p.sub) \u0026\u0026 r.obj == p.obj \u0026\u0026 r.act == p.act"
333
+ },
334
+ {
335
+ "owner": "built-in",
336
+ "name": "api-model-built-in",
337
+ "createdTime": "2024-09-09T09:26:12Z",
338
+ "displayName": "API Model",
339
+ "description": "",
340
+ "modelText": "[request_definition]\nr = subOwner, subName, method, urlPath, objOwner, objName\n\n[policy_definition]\np = subOwner, subName, method, urlPath, objOwner, objName\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = (r.subOwner == p.subOwner || p.subOwner == \"*\") \u0026\u0026 \\\n (r.subName == p.subName || p.subName == \"*\" || r.subName != \"anonymous\" \u0026\u0026 p.subName == \"!anonymous\") \u0026\u0026 \\\n (r.method == p.method || p.method == \"*\") \u0026\u0026 \\\n (r.urlPath == p.urlPath || p.urlPath == \"*\") \u0026\u0026 \\\n (r.objOwner == p.objOwner || p.objOwner == \"*\") \u0026\u0026 \\\n (r.objName == p.objName || p.objName == \"*\") || \\\n (r.subOwner == r.objOwner \u0026\u0026 r.subName == r.objName)"
341
+ }
342
+ ],
343
+ "organizations": [
344
+ {
345
+ "owner": "admin",
346
+ "name": "built-in",
347
+ "createdTime": "2024-09-09T09:26:04Z",
348
+ "displayName": "Built-in Organization",
349
+ "websiteUrl": "https://example.com",
350
+ "logo": "",
351
+ "logoDark": "",
352
+ "favicon": "https://cdn.casbin.org/img/casbin/favicon.ico",
353
+ "passwordType": "plain",
354
+ "passwordSalt": "",
355
+ "passwordOptions": ["AtLeast6"],
356
+ "countryCodes": ["US", "ES", "FR", "DE", "GB", "CN", "JP", "KR", "VN", "ID", "SG", "IN"],
357
+ "defaultAvatar": "https://cdn.casbin.org/img/casbin.svg",
358
+ "defaultApplication": "",
359
+ "tags": [],
360
+ "languages": ["en", "zh", "es", "fr", "de", "id", "ja", "ko", "ru", "vi", "pt"],
361
+ "themeData": null,
362
+ "masterPassword": "",
363
+ "defaultPassword": "",
364
+ "masterVerificationCode": "",
365
+ "initScore": 2000,
366
+ "enableSoftDeletion": false,
367
+ "isProfilePublic": false,
368
+ "useEmailAsUsername": false,
369
+ "enableTour": true,
370
+ "mfaItems": null,
371
+ "accountItems": [
372
+ {
373
+ "name": "Organization",
374
+ "visible": true,
375
+ "viewRule": "Public",
376
+ "modifyRule": "Admin",
377
+ "regex": ""
378
+ },
379
+ {
380
+ "name": "ID",
381
+ "visible": true,
382
+ "viewRule": "Public",
383
+ "modifyRule": "Immutable",
384
+ "regex": ""
385
+ },
386
+ {
387
+ "name": "Name",
388
+ "visible": true,
389
+ "viewRule": "Public",
390
+ "modifyRule": "Admin",
391
+ "regex": ""
392
+ },
393
+ {
394
+ "name": "Display name",
395
+ "visible": true,
396
+ "viewRule": "Public",
397
+ "modifyRule": "Self",
398
+ "regex": ""
399
+ },
400
+ {
401
+ "name": "Avatar",
402
+ "visible": true,
403
+ "viewRule": "Public",
404
+ "modifyRule": "Self",
405
+ "regex": ""
406
+ },
407
+ {
408
+ "name": "User type",
409
+ "visible": true,
410
+ "viewRule": "Public",
411
+ "modifyRule": "Admin",
412
+ "regex": ""
413
+ },
414
+ {
415
+ "name": "Password",
416
+ "visible": true,
417
+ "viewRule": "Self",
418
+ "modifyRule": "Self",
419
+ "regex": ""
420
+ },
421
+ {
422
+ "name": "Email",
423
+ "visible": true,
424
+ "viewRule": "Public",
425
+ "modifyRule": "Self",
426
+ "regex": ""
427
+ },
428
+ {
429
+ "name": "Phone",
430
+ "visible": true,
431
+ "viewRule": "Public",
432
+ "modifyRule": "Self",
433
+ "regex": ""
434
+ },
435
+ {
436
+ "name": "Country code",
437
+ "visible": true,
438
+ "viewRule": "Public",
439
+ "modifyRule": "Admin",
440
+ "regex": ""
441
+ },
442
+ {
443
+ "name": "Country/Region",
444
+ "visible": true,
445
+ "viewRule": "Public",
446
+ "modifyRule": "Self",
447
+ "regex": ""
448
+ },
449
+ {
450
+ "name": "Location",
451
+ "visible": true,
452
+ "viewRule": "Public",
453
+ "modifyRule": "Self",
454
+ "regex": ""
455
+ },
456
+ {
457
+ "name": "Affiliation",
458
+ "visible": true,
459
+ "viewRule": "Public",
460
+ "modifyRule": "Self",
461
+ "regex": ""
462
+ },
463
+ {
464
+ "name": "Title",
465
+ "visible": true,
466
+ "viewRule": "Public",
467
+ "modifyRule": "Self",
468
+ "regex": ""
469
+ },
470
+ {
471
+ "name": "Homepage",
472
+ "visible": true,
473
+ "viewRule": "Public",
474
+ "modifyRule": "Self",
475
+ "regex": ""
476
+ },
477
+ {
478
+ "name": "Bio",
479
+ "visible": true,
480
+ "viewRule": "Public",
481
+ "modifyRule": "Self",
482
+ "regex": ""
483
+ },
484
+ {
485
+ "name": "Tag",
486
+ "visible": true,
487
+ "viewRule": "Public",
488
+ "modifyRule": "Admin",
489
+ "regex": ""
490
+ },
491
+ {
492
+ "name": "Signup application",
493
+ "visible": true,
494
+ "viewRule": "Public",
495
+ "modifyRule": "Admin",
496
+ "regex": ""
497
+ },
498
+ {
499
+ "name": "Roles",
500
+ "visible": true,
501
+ "viewRule": "Public",
502
+ "modifyRule": "Immutable",
503
+ "regex": ""
504
+ },
505
+ {
506
+ "name": "Permissions",
507
+ "visible": true,
508
+ "viewRule": "Public",
509
+ "modifyRule": "Immutable",
510
+ "regex": ""
511
+ },
512
+ {
513
+ "name": "Groups",
514
+ "visible": true,
515
+ "viewRule": "Public",
516
+ "modifyRule": "Admin",
517
+ "regex": ""
518
+ },
519
+ {
520
+ "name": "3rd-party logins",
521
+ "visible": true,
522
+ "viewRule": "Self",
523
+ "modifyRule": "Self",
524
+ "regex": ""
525
+ },
526
+ {
527
+ "name": "Properties",
528
+ "visible": true,
529
+ "viewRule": "Admin",
530
+ "modifyRule": "Admin",
531
+ "regex": ""
532
+ },
533
+ {
534
+ "name": "Is admin",
535
+ "visible": true,
536
+ "viewRule": "Admin",
537
+ "modifyRule": "Admin",
538
+ "regex": ""
539
+ },
540
+ {
541
+ "name": "Is forbidden",
542
+ "visible": true,
543
+ "viewRule": "Admin",
544
+ "modifyRule": "Admin",
545
+ "regex": ""
546
+ },
547
+ {
548
+ "name": "Is deleted",
549
+ "visible": true,
550
+ "viewRule": "Admin",
551
+ "modifyRule": "Admin",
552
+ "regex": ""
553
+ },
554
+ {
555
+ "name": "Multi-factor authentication",
556
+ "visible": true,
557
+ "viewRule": "Self",
558
+ "modifyRule": "Self",
559
+ "regex": ""
560
+ },
561
+ {
562
+ "name": "WebAuthn credentials",
563
+ "visible": true,
564
+ "viewRule": "Self",
565
+ "modifyRule": "Self",
566
+ "regex": ""
567
+ },
568
+ {
569
+ "name": "Managed accounts",
570
+ "visible": true,
571
+ "viewRule": "Self",
572
+ "modifyRule": "Self",
573
+ "regex": ""
574
+ },
575
+ {
576
+ "name": "MFA accounts",
577
+ "visible": true,
578
+ "viewRule": "Self",
579
+ "modifyRule": "Self",
580
+ "regex": ""
581
+ }
582
+ ]
583
+ }
584
+ ],
585
+ "payments": [],
586
+ "permissions": [
587
+ {
588
+ "owner": "built-in",
589
+ "name": "permission-built-in",
590
+ "createdTime": "2024-09-09T09:26:04Z",
591
+ "displayName": "Built-in Permission",
592
+ "description": "Built-in Permission",
593
+ "users": ["built-in/*"],
594
+ "groups": [],
595
+ "roles": [],
596
+ "domains": [],
597
+ "model": "user-model-built-in",
598
+ "adapter": "",
599
+ "resourceType": "Application",
600
+ "resources": ["app-built-in"],
601
+ "actions": ["Read", "Write", "Admin"],
602
+ "effect": "Allow",
603
+ "isEnabled": true,
604
+ "submitter": "admin",
605
+ "approver": "admin",
606
+ "approveTime": "2024-09-09T09:26:04Z",
607
+ "state": "Approved"
608
+ }
609
+ ],
610
+ "plans": [],
611
+ "pricings": [],
612
+ "products": [],
613
+ "providers": [],
614
+ "records": [],
615
+ "resources": [],
616
+ "roles": [],
617
+ "sessions": [],
618
+ "subscriptions": [],
619
+ "syncers": [],
620
+ "tokens": [],
621
+ "transactions": [],
622
+ "users": [
623
+ {
624
+ "owner": "built-in",
625
+ "name": "admin",
626
+ "createdTime": "2024-09-09T09:26:05Z",
627
+ "updatedTime": "",
628
+ "deletedTime": "",
629
+ "id": "bbf2a176-203c-414c-8cdd-ec92b019e07a",
630
+ "externalId": "",
631
+ "type": "normal-user",
632
+ "password": "123",
633
+ "passwordSalt": "",
634
+ "passwordType": "plain",
635
+ "displayName": "Admin",
636
+ "firstName": "",
637
+ "lastName": "",
638
+ "avatar": "https://cdn.casbin.org/img/casbin.svg",
639
+ "avatarType": "",
640
+ "permanentAvatar": "",
641
+ "email": "admin@example.com",
642
+ "emailVerified": false,
643
+ "phone": "12345678910",
644
+ "countryCode": "US",
645
+ "region": "",
646
+ "location": "",
647
+ "address": [],
648
+ "affiliation": "Example Inc.",
649
+ "title": "",
650
+ "idCardType": "",
651
+ "idCard": "",
652
+ "homepage": "",
653
+ "bio": "",
654
+ "tag": "staff",
655
+ "language": "",
656
+ "gender": "",
657
+ "birthday": "",
658
+ "education": "",
659
+ "score": 2000,
660
+ "karma": 0,
661
+ "ranking": 1,
662
+ "balance": 0,
663
+ "currency": "",
664
+ "isDefaultAvatar": false,
665
+ "isOnline": false,
666
+ "isAdmin": true,
667
+ "isForbidden": false,
668
+ "isDeleted": false,
669
+ "signupApplication": "app-built-in",
670
+ "hash": "",
671
+ "preHash": "",
672
+ "accessKey": "",
673
+ "accessSecret": "",
674
+ "accessToken": "",
675
+ "createdIp": "127.0.0.1",
676
+ "lastSigninTime": "",
677
+ "lastSigninIp": "",
678
+ "github": "",
679
+ "google": "",
680
+ "qq": "",
681
+ "wechat": "",
682
+ "facebook": "",
683
+ "dingtalk": "",
684
+ "weibo": "",
685
+ "gitee": "",
686
+ "linkedin": "",
687
+ "wecom": "",
688
+ "lark": "",
689
+ "gitlab": "",
690
+ "adfs": "",
691
+ "baidu": "",
692
+ "alipay": "",
693
+ "casdoor": "",
694
+ "infoflow": "",
695
+ "apple": "",
696
+ "azuread": "",
697
+ "azureadb2c": "",
698
+ "slack": "",
699
+ "steam": "",
700
+ "bilibili": "",
701
+ "okta": "",
702
+ "douyin": "",
703
+ "line": "",
704
+ "amazon": "",
705
+ "auth0": "",
706
+ "battlenet": "",
707
+ "bitbucket": "",
708
+ "box": "",
709
+ "cloudfoundry": "",
710
+ "dailymotion": "",
711
+ "deezer": "",
712
+ "digitalocean": "",
713
+ "discord": "",
714
+ "dropbox": "",
715
+ "eveonline": "",
716
+ "fitbit": "",
717
+ "gitea": "",
718
+ "heroku": "",
719
+ "influxcloud": "",
720
+ "instagram": "",
721
+ "intercom": "",
722
+ "kakao": "",
723
+ "lastfm": "",
724
+ "mailru": "",
725
+ "meetup": "",
726
+ "microsoftonline": "",
727
+ "naver": "",
728
+ "nextcloud": "",
729
+ "onedrive": "",
730
+ "oura": "",
731
+ "patreon": "",
732
+ "paypal": "",
733
+ "salesforce": "",
734
+ "shopify": "",
735
+ "soundcloud": "",
736
+ "spotify": "",
737
+ "strava": "",
738
+ "stripe": "",
739
+ "tiktok": "",
740
+ "tumblr": "",
741
+ "twitch": "",
742
+ "twitter": "",
743
+ "typetalk": "",
744
+ "uber": "",
745
+ "vk": "",
746
+ "wepay": "",
747
+ "xero": "",
748
+ "yahoo": "",
749
+ "yammer": "",
750
+ "yandex": "",
751
+ "zoom": "",
752
+ "metamask": "",
753
+ "web3onboard": "",
754
+ "custom": "",
755
+ "webauthnCredentials": null,
756
+ "preferredMfaType": "",
757
+ "recoveryCodes": null,
758
+ "totpSecret": "",
759
+ "mfaPhoneEnabled": false,
760
+ "mfaEmailEnabled": false,
761
+ "invitation": "",
762
+ "invitationCode": "",
763
+ "faceIds": null,
764
+ "ldap": "",
765
+ "properties": {},
766
+ "roles": null,
767
+ "permissions": null,
768
+ "groups": null,
769
+ "lastSigninWrongTime": "",
770
+ "signinWrongTimes": 0,
771
+ "managedAccounts": null,
772
+ "mfaAccounts": null,
773
+ "needUpdatePassword": false
774
+ }
775
+ ],
776
+ "webhooks": []
777
+ }
@@ -60,7 +60,7 @@ SUB_DIR="docker-compose/local"
60
60
  FILES=(
61
61
  "$SUB_DIR/docker-compose.yml"
62
62
  "$SUB_DIR/.env.example"
63
- "$SUB_DIR/init_data.json.tar.gz"
63
+ "$SUB_DIR/init_data.json"
64
64
  "$SUB_DIR/s3_data.tar.gz"
65
65
  )
66
66
 
@@ -227,16 +227,15 @@ print_centered() {
227
227
  # Download files asynchronously
228
228
  download_file "$SOURCE_URL/${FILES[0]}" "docker-compose.yml"
229
229
  download_file "$SOURCE_URL/${FILES[1]}" ".env"
230
- download_file "$SOURCE_URL/${FILES[2]}" "init_data.json.tar.gz"
230
+ download_file "$SOURCE_URL/${FILES[2]}" "init_data.json"
231
231
  download_file "$SOURCE_URL/${FILES[3]}" "s3_data.tar.gz"
232
232
 
233
233
  # Extract .tar.gz file without output
234
234
  extract_file "s3_data.tar.gz" "."
235
- extract_file "init_data.json.tar.gz" "."
236
235
 
237
236
  # Display final message
238
237
  printf "\n%s\n\n" "$(show_message "tips_run_command")"
239
- print_centered "docker compose up -d" "green"
238
+ print_centered "docker compose -p lobechat-starter up -d" "green"
240
239
  printf "\n%s" "$(show_message "tips_show_documentation")"
241
240
  printf "%s\n" $(show_message "tips_show_documentation_url")
242
241
  printf "\n\e[33m%s\e[0m\n" "$(show_message "tips_warning")"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.21.7",
3
+ "version": "1.21.9",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -60,13 +60,13 @@ const Qwen: ModelProviderCard = {
60
60
  '通义千问大规模视觉语言模型增强版。大幅提升细节识别能力和文字识别能力,支持超百万像素分辨率和任意长宽比规格的图像。',
61
61
  displayName: 'Qwen VL Plus',
62
62
  enabled: true,
63
- id: 'qwen-vl-plus',
63
+ id: 'qwen-vl-plus-latest',
64
64
  pricing: {
65
65
  currency: 'CNY',
66
66
  input: 8,
67
67
  output: 8,
68
68
  },
69
- tokens: 8000,
69
+ tokens: 32_000,
70
70
  vision: true,
71
71
  },
72
72
  {
@@ -74,7 +74,7 @@ const Qwen: ModelProviderCard = {
74
74
  '通义千问超大规模视觉语言模型。相比增强版,再次提升视觉推理能力和指令遵循能力,提供更高的视觉感知和认知水平。',
75
75
  displayName: 'Qwen VL Max',
76
76
  enabled: true,
77
- id: 'qwen-vl-max',
77
+ id: 'qwen-vl-max-latest',
78
78
  pricing: {
79
79
  currency: 'CNY',
80
80
  input: 20,
@@ -1,11 +1,11 @@
1
1
  export const LANGCHAIN_SUPPORT_TEXT_LIST = [
2
2
  'txt',
3
- 'md',
4
3
  'markdown',
5
4
  'md',
6
5
  'mdx',
7
6
  'toml',
8
7
  'yaml',
8
+ 'yml',
9
9
  'json',
10
10
 
11
11
  'sh',
package/src/middleware.ts CHANGED
@@ -9,7 +9,7 @@ import { OAUTH_AUTHORIZED } from './const/auth';
9
9
  export const config = {
10
10
  matcher: [
11
11
  // include any files in the api or trpc folders that might have an extension
12
- '/(api|trpc)(.*)',
12
+ '/(api|trpc|webapi)(.*)',
13
13
  // include the /
14
14
  '/',
15
15
  '/chat(.*)',
@@ -67,9 +67,10 @@ export const chatRag: StateCreator<ChatStore, [['zustand/devtools', never]], [],
67
67
  // 1. get the rewrite query
68
68
  let rewriteQuery = message?.ragQuery || userQuery;
69
69
 
70
+ // only rewrite query length is less than 10 characters
70
71
  // if there is no ragQuery and there is a chat history
71
72
  // we need to rewrite the user message to get better results
72
- if (!message?.ragQuery && messages.length > 0) {
73
+ if (rewriteQuery.length < 10 && !message?.ragQuery && messages.length > 0) {
73
74
  rewriteQuery = await get().internal_rewriteQuery(id, userQuery, messages);
74
75
  }
75
76