mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* 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
8 lines
283 B
JavaScript
8 lines
283 B
JavaScript
const express = require('express');
|
|
const { modelController } = require('~/server/controllers/ModelController');
|
|
const { requireJwtAuth } = require('~/server/middleware/');
|
|
|
|
const router = express.Router();
|
|
router.get('/', requireJwtAuth, modelController);
|
|
|
|
module.exports = router;
|