LibreChat/api/server/middleware
Danny Avila dd8038b375
🛠️ refactor: Model Loading and Custom Endpoint Error Handling (#1849)
* fix: handle non-assistant role ChatCompletionMessage error

* refactor(ModelController): decouple res.send from loading/caching models

* fix(custom/initializeClient): only fetch custom endpoint models if models.fetch is true

* refactor(validateModel): load models if modelsConfig is not yet cached

* docs: update on file upload rate limiting
2024-02-20 12:57:58 -05:00
..
abortControllers.js
abortMiddleware.js
abortRun.js
buildEndpointOption.js
checkBan.js
concurrentLimiter.js
denyRequest.js
index.js
loginLimiter.js
messageLimiters.js
moderateText.js
noIndex.js
registerLimiter.js
requireJwtAuth.js
requireLocalAuth.js
setHeaders.js
uaParser.js
uploadLimiters.js
validateEndpoint.js
validateMessageReq.js
validateModel.js 🛠️ refactor: Model Loading and Custom Endpoint Error Handling (#1849) 2024-02-20 12:57:58 -05:00
validateRegistration.js