mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
* feat: add timer duration to showToast, show toast for preset selection * refactor: replace old /chat/ route with /c/. e2e tests will fail here * refactor: move typedefs to root of /api/ and add a few to assistant types in TS * refactor: reorganize data-provider imports, fix dependency cycle, strategize new plan to separate react dependent packages * feat: add dataService for uploading images * feat(data-provider): add mutation keys * feat: file resizing and upload * WIP: initial API image handling * fix: catch JSON.parse of localStorage tools * chore: experimental: use module-alias for absolute imports * refactor: change temp_file_id strategy * fix: updating files state by using Map and defining react query callbacks in a way that keeps them during component unmount, initial delete handling * feat: properly handle file deletion * refactor: unexpose complete filepath and resize from server for higher fidelity * fix: make sure resized height, width is saved, catch bad requests * refactor: use absolute imports * fix: prevent setOptions from being called more than once for OpenAIClient, made note to fix for PluginsClient * refactor: import supportsFiles and models vars from schemas * fix: correctly replace temp file id * refactor(BaseClient): use absolute imports, pass message 'opts' to buildMessages method, count tokens for nested objects/arrays * feat: add validateVisionModel to determine if model has vision capabilities * chore(checkBalance): update jsdoc * feat: formatVisionMessage: change message content format dependent on role and image_urls passed * refactor: add usage to File schema, make create and updateFile, correctly set and remove TTL * feat: working vision support TODO: file size, type, amount validations, making sure they are styled right, and making sure you can add images from the clipboard/dragging * feat: clipboard support for uploading images * feat: handle files on drop to screen, refactor top level view code to Presentation component so the useDragHelpers hook has ChatContext * fix(Images): replace uploaded images in place * feat: add filepath validation to protect sensitive files * fix: ensure correct file_ids are push and not the Map key values * fix(ToastContext): type issue * feat: add basic file validation * fix(useDragHelpers): correct context issue with `files` dependency * refactor: consolidate setErrors logic to setError * feat: add dialog Image overlay on image click * fix: close endpoints menu on click * chore: set detail to auto, make note for configuration * fix: react warning (button desc. of button) * refactor: optimize filepath handling, pass file_ids to images for easier re-use * refactor: optimize image file handling, allow re-using files in regen, pass more file metadata in messages * feat: lazy loading images including use of upload preview * fix: SetKeyDialog closing, stopPropagation on Dialog content click * style(EndpointMenuItem): tighten up the style, fix dark theme showing in lightmode, make menu more ux friendly * style: change maxheight of all settings textareas to 138px from 300px * style: better styling for textarea and enclosing buttons * refactor(PresetItems): swap back edit and delete icons * feat: make textarea placeholder dynamic to endpoint * style: show user hover buttons only on hover when message is streaming * fix: ordered list not going past 9, fix css * feat: add User/AI labels; style: hide loading spinner * feat: add back custom footer, change original footer text * feat: dynamic landing icons based on endpoint * chore: comment out assistants route * fix: autoScroll to newest on /c/ view * fix: Export Conversation on new UI * style: match message style of official more closely * ci: fix api jest unit tests, comment out e2e tests for now as they will fail until addressed * feat: more file validation and use blob in preview field, not filepath, to fix temp deletion * feat: filefilter for multer * feat: better AI labels based on custom name, model, and endpoint instead of `ChatGPT`
119 lines
4 KiB
JSON
119 lines
4 KiB
JSON
{
|
|
"name": "@librechat/frontend",
|
|
"version": "0.6.1",
|
|
"description": "",
|
|
"scripts": {
|
|
"data-provider": "cd .. && npm run build:data-provider",
|
|
"build": "cross-env NODE_ENV=production vite build",
|
|
"build:ci": "cross-env NODE_ENV=development vite build --mode ci",
|
|
"dev": "cross-env NODE_ENV=development vite",
|
|
"preview-prod": "cross-env NODE_ENV=development vite preview",
|
|
"test": "cross-env NODE_ENV=development jest --watch",
|
|
"test:ci": "cross-env NODE_ENV=development jest --ci",
|
|
"b:test": "NODE_ENV=test bunx jest --watch",
|
|
"b:build": "NODE_ENV=production bun --bun vite build",
|
|
"b:dev": "NODE_ENV=development bunx vite"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/danny-avila/LibreChat.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"bugs": {
|
|
"url": "https://github.com/danny-avila/LibreChat/issues"
|
|
},
|
|
"homepage": "https://github.com/danny-avila/LibreChat#readme",
|
|
"dependencies": {
|
|
"@headlessui/react": "^1.7.13",
|
|
"@radix-ui/react-alert-dialog": "^1.0.2",
|
|
"@radix-ui/react-checkbox": "^1.0.3",
|
|
"@radix-ui/react-dialog": "^1.0.2",
|
|
"@radix-ui/react-dropdown-menu": "^2.0.2",
|
|
"@radix-ui/react-hover-card": "^1.0.5",
|
|
"@radix-ui/react-icons": "^1.3.0",
|
|
"@radix-ui/react-label": "^2.0.0",
|
|
"@radix-ui/react-popover": "^1.0.7",
|
|
"@radix-ui/react-separator": "^1.0.3",
|
|
"@radix-ui/react-slider": "^1.1.1",
|
|
"@radix-ui/react-switch": "^1.0.3",
|
|
"@radix-ui/react-tabs": "^1.0.3",
|
|
"@radix-ui/react-toast": "^1.1.5",
|
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
"@tanstack/react-query": "^4.28.0",
|
|
"@zattoo/use-double-click": "1.2.0",
|
|
"axios": "^1.3.4",
|
|
"class-variance-authority": "^0.6.0",
|
|
"clsx": "^1.2.1",
|
|
"copy-to-clipboard": "^3.3.3",
|
|
"cross-env": "^7.0.3",
|
|
"downloadjs": "^1.4.7",
|
|
"export-from-json": "^1.7.2",
|
|
"filenamify": "^6.0.0",
|
|
"html-to-image": "^1.11.11",
|
|
"image-blob-reduce": "^4.1.0",
|
|
"librechat-data-provider": "*",
|
|
"lodash": "^4.17.21",
|
|
"lucide-react": "^0.220.0",
|
|
"rc-input-number": "^7.4.2",
|
|
"react": "^18.2.0",
|
|
"react-dnd": "^16.0.1",
|
|
"react-dnd-html5-backend": "^16.0.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-hook-form": "^7.43.9",
|
|
"react-lazy-load-image-component": "^1.6.0",
|
|
"react-markdown": "^8.0.6",
|
|
"react-router-dom": "^6.11.2",
|
|
"react-textarea-autosize": "^8.4.0",
|
|
"react-transition-group": "^4.4.5",
|
|
"recoil": "^0.7.7",
|
|
"rehype-highlight": "^6.0.0",
|
|
"rehype-katex": "^6.0.2",
|
|
"rehype-raw": "^6.1.1",
|
|
"remark-gfm": "^3.0.1",
|
|
"remark-math": "^5.1.1",
|
|
"remark-supersub": "^1.0.0",
|
|
"tailwind-merge": "^1.9.1",
|
|
"tailwindcss-animate": "^1.0.5",
|
|
"tailwindcss-radix": "^2.8.0",
|
|
"url": "^0.11.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
"@babel/preset-env": "^7.22.15",
|
|
"@babel/preset-react": "^7.22.15",
|
|
"@babel/preset-typescript": "^7.22.15",
|
|
"@tanstack/react-query-devtools": "^4.29.0",
|
|
"@testing-library/dom": "^9.3.0",
|
|
"@testing-library/jest-dom": "^5.16.5",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@testing-library/user-event": "^14.4.3",
|
|
"@types/jest": "^29.5.2",
|
|
"@types/node": "^20.3.0",
|
|
"@types/react": "^18.2.11",
|
|
"@types/react-dom": "^18.2.4",
|
|
"@vitejs/plugin-react": "^4.0.4",
|
|
"autoprefixer": "^10.4.13",
|
|
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
|
|
"babel-plugin-root-import": "^6.6.0",
|
|
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
"babel-plugin-transform-vite-meta-env": "^1.0.3",
|
|
"eslint-plugin-jest": "^27.2.1",
|
|
"identity-obj-proxy": "^3.0.0",
|
|
"jest": "^29.5.0",
|
|
"jest-canvas-mock": "^2.5.1",
|
|
"jest-environment-jsdom": "^29.5.0",
|
|
"jest-file-loader": "^1.0.3",
|
|
"jest-junit": "^16.0.0",
|
|
"postcss": "^8.4.31",
|
|
"postcss-loader": "^7.1.0",
|
|
"postcss-preset-env": "^8.2.0",
|
|
"tailwindcss": "^3.2.6",
|
|
"ts-jest": "^29.1.0",
|
|
"typescript": "^5.0.4",
|
|
"vite": "^4.4.9",
|
|
"vite-plugin-html": "^3.2.0"
|
|
}
|
|
}
|