mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🛠️ 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
This commit is contained in:
parent
542494fad6
commit
dd8038b375
7 changed files with 47 additions and 10 deletions
|
|
@ -31,11 +31,14 @@ The project's current rate limiters are as follows (see below under setup for de
|
|||
- Login and registration rate limiting
|
||||
- [optional] Concurrent Message limiting (only X messages at a time per user)
|
||||
- [optional] Message limiting (how often a user can send a message, configurable by IP and User)
|
||||
- [optional] File Upload limiting: configurable through [`librechat.yaml` config file](https://docs.librechat.ai/install/configuration/custom_config.html#rate-limiting).
|
||||
|
||||
### Setup
|
||||
|
||||
The following are all of the related env variables to make use of and configure the mod system. Note this is also found in the [/.env.example](https://github.com/danny-avila/LibreChat/blob/main/.env.example) file, to be set in your own `.env` file.
|
||||
|
||||
**Note:** currently, most of these values are configured through the .env file, but they may soon migrate to be exclusively configured from the [`librechat.yaml` config file](https://docs.librechat.ai/install/configuration/custom_config.html#rate-limiting).
|
||||
|
||||
```bash
|
||||
BAN_VIOLATIONS=true # Whether or not to enable banning users for violations (they will still be logged)
|
||||
BAN_DURATION=1000 * 60 * 60 * 2 # how long the user and associated IP are banned for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue