mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 12:20:14 +01:00
* chore: bump browserslist-db@latest * refactor(EndpointService): simplify with `generateConfig`, utilize optional baseURL for OpenAI-based endpoints, use `isUserProvided` helper fn wherever needed * refactor(custom/initializeClient): use standardized naming for common variables * feat: user provided baseURL for openAI-based endpoints * refactor(custom/initializeClient): re-order operations * fix: knownendpoints enum definition and add FetchTokenConfig, bump data-provider * refactor(custom): use tokenKey dependent on userProvided conditions for caching and fetching endpointTokenConfig, anticipate token rates from custom config * refactor(custom): assure endpointTokenConfig is only accessed from cache if qualifies for fetching * fix(ci): update tests for initializeClient based on userProvideURL changes * fix(EndpointService): correct baseURL env var for assistants: `ASSISTANTS_BASE_URL` * fix: unnecessary run cancellation on res.close() when response.run is completed * feat(assistants): user provided URL option * ci: update tests and add test for `assistants` endpoint * chore: leaner condition for request closing * chore: more descriptive error message to provide keys again
77 lines
2.3 KiB
JSON
77 lines
2.3 KiB
JSON
{
|
|
"name": "librechat-data-provider",
|
|
"version": "0.4.6",
|
|
"description": "data services for librechat apps",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.es.js",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.es.js",
|
|
"require": "./dist/index.js",
|
|
"types": "./dist/types/index.d.ts"
|
|
},
|
|
"./react-query": {
|
|
"import": "./dist/react-query/index.es.js",
|
|
"require": "./dist/react-query/index.js",
|
|
"types": "./dist/types/react-query/index.d.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"build": "npm run clean && rollup -c --silent --bundleConfigAsCjs",
|
|
"build:watch": "rollup -c -w",
|
|
"rollup:api": "npx rollup -c server-rollup.config.js --bundleConfigAsCjs",
|
|
"test": "jest --coverage --watch",
|
|
"test:ci": "jest --coverage --ci",
|
|
"verify": "npm run test:ci",
|
|
"b:clean": "bun run rimraf dist",
|
|
"b:build": "bun run b:clean && bun run rollup -c --silent --bundleConfigAsCjs"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/danny-avila/LibreChat.git"
|
|
},
|
|
"author": "",
|
|
"license": "ISC",
|
|
"bugs": {
|
|
"url": "https://github.com/danny-avila/LibreChat/issues"
|
|
},
|
|
"homepage": "https://librechat.ai",
|
|
"dependencies": {
|
|
"@types/js-yaml": "^4.0.9",
|
|
"axios": "^1.3.4",
|
|
"js-yaml": "^4.1.0",
|
|
"openai": "4.11.1",
|
|
"openapi-types": "^12.1.3",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-env": "^7.21.5",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@babel/preset-typescript": "^7.21.0",
|
|
"@rollup/plugin-alias": "^5.1.0",
|
|
"@rollup/plugin-commonjs": "^25.0.2",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
"@rollup/plugin-replace": "^5.0.5",
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"@types/jest": "^29.5.2",
|
|
"@types/node": "^20.3.0",
|
|
"@types/react": "^18.2.18",
|
|
"jest": "^29.5.0",
|
|
"jest-junit": "^16.0.0",
|
|
"rimraf": "^5.0.1",
|
|
"rollup": "^3.26.0",
|
|
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
"rollup-plugin-typescript2": "^0.35.0",
|
|
"typescript": "^5.0.4"
|
|
},
|
|
"peerDependencies": {
|
|
"@tanstack/react-query": "^4.28.0"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
}
|
|
}
|