@kwirthmagnify/kwirth-common-ai 0.5.50 → 0.5.51
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/front.js +3 -3
- package/package.json +1 -1
package/dist/front.js
CHANGED
|
@@ -50,7 +50,7 @@ const material_1 = require("@mui/material");
|
|
|
50
50
|
propia copia—, y common-front y common-ai son la excepcion documentada.
|
|
51
51
|
*/
|
|
52
52
|
const Download_1 = __importDefault(require("@mui/icons-material/Download"));
|
|
53
|
-
const
|
|
53
|
+
const Upload_1 = __importDefault(require("@mui/icons-material/Upload"));
|
|
54
54
|
const Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
|
|
55
55
|
const VisibilityOff_1 = __importDefault(require("@mui/icons-material/VisibilityOff"));
|
|
56
56
|
const downloadJson = async (data, filename) => {
|
|
@@ -198,7 +198,7 @@ const AiConfigLlm = (props) => {
|
|
|
198
198
|
reader.readAsText(f);
|
|
199
199
|
e.target.value = '';
|
|
200
200
|
} }),
|
|
201
|
-
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(
|
|
201
|
+
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(Upload_1.default, { fontSize: 'small' }), onClick: () => { var _a; return (_a = importLlmRef.current) === null || _a === void 0 ? void 0 : _a.click(); } }, "Import"),
|
|
202
202
|
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(Download_1.default, { fontSize: 'small' }), onClick: () => downloadJson(llms, 'kwirth-llms.json') }, "Export"),
|
|
203
203
|
react_1.default.createElement(material_1.Box, { flex: 1 }),
|
|
204
204
|
react_1.default.createElement(material_1.Button, { onClick: () => props.onClose(llms), variant: 'contained' }, "OK"),
|
|
@@ -327,7 +327,7 @@ const AiConfigProvider = (props) => {
|
|
|
327
327
|
reader.readAsText(f);
|
|
328
328
|
e.target.value = '';
|
|
329
329
|
} }),
|
|
330
|
-
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(
|
|
330
|
+
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(Upload_1.default, { fontSize: 'small' }), onClick: () => { var _a; return (_a = importProvRef.current) === null || _a === void 0 ? void 0 : _a.click(); } }, "Import"),
|
|
331
331
|
react_1.default.createElement(material_1.Button, { startIcon: react_1.default.createElement(Download_1.default, { fontSize: 'small' }), onClick: () => downloadJson(providers.map(p => { var _a; return (Object.assign({ name: p.name, type: (_a = p.type) !== null && _a !== void 0 ? _a : p.name, key: p.key }, (p.endpoint ? { endpoint: p.endpoint } : {}))); }), 'kwirth-providers.json') }, "Export"),
|
|
332
332
|
react_1.default.createElement(material_1.Box, { flex: 1 }),
|
|
333
333
|
react_1.default.createElement(material_1.Button, { onClick: () => props.onClose(providers), color: 'primary', variant: 'contained' }, "Save"),
|