@tiledesk/tiledesk-server 2.19.1 → 2.19.3
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 +2 -1
- package/middleware/file-type.js +4 -0
- package/package.json +2 -2
- package/routes/filesp.js +3 -0
- package/routes/llm.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
|
7
7
|
|
|
8
|
-
# 2.19.
|
|
8
|
+
# 2.19.2
|
|
9
9
|
- Improved vLLM integration in order to support multiple servers
|
|
10
10
|
- Added custom_regex option for .txt and .md file uploaded in a Knowledge Base
|
|
11
|
+
- Improved extension management in order to support markdown files
|
|
11
12
|
- Updated tybot-connector to 2.1.1
|
|
12
13
|
|
|
13
14
|
# 2.19.0
|
package/middleware/file-type.js
CHANGED
|
@@ -5,6 +5,7 @@ const fs = require('fs');
|
|
|
5
5
|
const TEXT_MIME_TYPES = [
|
|
6
6
|
'text/plain',
|
|
7
7
|
'text/csv',
|
|
8
|
+
'text/markdown',
|
|
8
9
|
'image/svg+xml',
|
|
9
10
|
'application/xml',
|
|
10
11
|
'text/xml'
|
|
@@ -39,6 +40,9 @@ function areMimeTypesEquivalent(mimeType1, mimeType2) {
|
|
|
39
40
|
'image/jpg': ['image/jpeg'],
|
|
40
41
|
'application/x-zip-compressed': ['application/zip'],
|
|
41
42
|
'application/zip': ['application/x-zip-compressed'],
|
|
43
|
+
'text/markdown': ['text/plain', 'text/x-markdown'],
|
|
44
|
+
'text/plain': ['text/markdown', 'text/x-markdown'],
|
|
45
|
+
'text/x-markdown': ['text/markdown', 'text/plain'],
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
// Check if m1 is an alias of m2 or vice versa
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiledesk/tiledesk-server",
|
|
3
3
|
"description": "The Tiledesk server module",
|
|
4
|
-
"version": "2.19.
|
|
4
|
+
"version": "2.19.3",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "node ./bin/www",
|
|
7
7
|
"pretest": "mongodb-runner start",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
|
|
50
50
|
"@tiledesk/tiledesk-sms-connector": "^0.1.13",
|
|
51
51
|
"@tiledesk/tiledesk-telegram-connector": "^0.1.14",
|
|
52
|
-
"@tiledesk/tiledesk-tybot-connector": "^2.1.
|
|
52
|
+
"@tiledesk/tiledesk-tybot-connector": "^2.1.2",
|
|
53
53
|
"@tiledesk/tiledesk-voice-twilio-connector": "^0.3.2",
|
|
54
54
|
"@tiledesk/tiledesk-vxml-connector": "^0.1.91",
|
|
55
55
|
"@tiledesk/tiledesk-whatsapp-connector": "1.0.26",
|
package/routes/filesp.js
CHANGED
|
@@ -132,6 +132,9 @@ function areMimeTypesEquivalent(mimeType1, mimeType2) {
|
|
|
132
132
|
'image/jpg': ['image/jpeg'],
|
|
133
133
|
'application/x-zip-compressed': ['application/zip'],
|
|
134
134
|
'application/zip': ['application/x-zip-compressed'],
|
|
135
|
+
'text/markdown': ['text/plain', 'text/x-markdown'],
|
|
136
|
+
'text/plain': ['text/markdown', 'text/x-markdown'],
|
|
137
|
+
'text/x-markdown': ['text/markdown', 'text/plain'],
|
|
135
138
|
};
|
|
136
139
|
|
|
137
140
|
// Check if m1 is an alias of m2 or vice versa
|