@smart-cloud/ai-kit-ui 1.4.15 → 1.4.17
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/dist/ai-chatbot/AiChatbot.d.ts +1 -0
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +15 -15
- package/src/ai-chatbot/AiChatbot.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-cloud/ai-kit-ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@emotion/cache": "^11.14.0",
|
|
23
23
|
"@emotion/react": "^11.14.0",
|
|
24
24
|
"@mantine/colors-generator": "^8.3.18",
|
|
25
|
-
"@smart-cloud/ai-kit-core": "^1.4.
|
|
26
|
-
"@smart-cloud/wpsuite-core": "^2.2.
|
|
27
|
-
"@tabler/icons-react": "^3.
|
|
25
|
+
"@smart-cloud/ai-kit-core": "^1.4.12",
|
|
26
|
+
"@smart-cloud/wpsuite-core": "^2.2.12",
|
|
27
|
+
"@tabler/icons-react": "^3.42.0",
|
|
28
28
|
"chroma-js": "^3.2.0",
|
|
29
|
-
"country-flag-icons": "^1.6.
|
|
29
|
+
"country-flag-icons": "^1.6.17",
|
|
30
30
|
"react-markdown": "^10.1.0",
|
|
31
31
|
"rehype-parse": "^9.0.1",
|
|
32
32
|
"rehype-raw": "^7.0.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@mantine/core": "^8.3.18",
|
|
44
44
|
"@mantine/hooks": "^8.3.18",
|
|
45
45
|
"@mantine/modals": "^8.3.18",
|
|
46
|
-
"@wordpress/data": "^10.
|
|
47
|
-
"aws-amplify": "^6.
|
|
46
|
+
"@wordpress/data": "^10.45.0",
|
|
47
|
+
"aws-amplify": "^6.17.0",
|
|
48
48
|
"react": "^18.3.1",
|
|
49
49
|
"react-dom": "^18.3.1"
|
|
50
50
|
},
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
"@types/jquery": "^4.0.0",
|
|
58
58
|
"@types/react": "^18.3.23",
|
|
59
59
|
"@types/react-dom": "^18.3.7",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@wordpress/data": "^10.
|
|
63
|
-
"ajv": "^8.
|
|
64
|
-
"aws-amplify": "^6.
|
|
65
|
-
"eslint": "^10.
|
|
66
|
-
"globals": "^17.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
61
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
62
|
+
"@wordpress/data": "^10.45.0",
|
|
63
|
+
"ajv": "^8.20.0",
|
|
64
|
+
"aws-amplify": "^6.17.0",
|
|
65
|
+
"eslint": "^10.3.0",
|
|
66
|
+
"globals": "^17.6.0",
|
|
67
67
|
"jquery": "^4.0.0",
|
|
68
68
|
"react": "^18.3.1",
|
|
69
69
|
"react-dom": "^18.3.1",
|
|
70
70
|
"tsup": "^8.5.1",
|
|
71
71
|
"typescript": "^6.0.3",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
72
|
+
"typescript-eslint": "^8.59.2"
|
|
73
73
|
},
|
|
74
74
|
"exports": {
|
|
75
75
|
".": {
|
|
@@ -309,6 +309,7 @@ const AiChatbotBase: FC<AiChatbotProps & AiKitShellInjectedProps> = (props) => {
|
|
|
309
309
|
placeholder,
|
|
310
310
|
maxImages,
|
|
311
311
|
maxImageBytes,
|
|
312
|
+
maxTokens,
|
|
312
313
|
|
|
313
314
|
// New
|
|
314
315
|
historyStorage = DEFAULT_HISTORY_STORAGE,
|
|
@@ -1164,6 +1165,7 @@ const AiChatbotBase: FC<AiChatbotProps & AiKitShellInjectedProps> = (props) => {
|
|
|
1164
1165
|
message: trimmed || undefined,
|
|
1165
1166
|
audio: selectedAudio?.blob,
|
|
1166
1167
|
images: selectedImages.map((img) => img.file),
|
|
1168
|
+
maxTokens,
|
|
1167
1169
|
},
|
|
1168
1170
|
{
|
|
1169
1171
|
signal,
|