余额
在 LibreChat 中为用户配置代币额度余额
概述
balance 对象允许管理员配置 LibreChat 中用户积分余额的管理方式。设置包括启用余额跟踪、初始化用户余额以及配置自动充值行为。
balance 下的字段:
enabledstartBalanceautoRefillEnabledrefillIntervalValuerefillIntervalUnitrefillAmount
注意:
balance配置适用于整个应用程序。- 系统已提供默认值,但可以根据需求进行自定义。
- 条件逻辑可以根据其他配置动态修改这些设置。
示例
enabled
键:
| Key | Type | Description | Example |
|---|---|---|---|
| enabled | Boolean | 启用用户的积分额度跟踪和余额管理。 | Set to true to activate balance tracking for token usage. |
默认值: false
示例:
startBalance
键:
| Key | Type | Description | Example |
|---|---|---|---|
| startBalance | Integer | 指定用户注册时初始获得的积分令牌数量。 | Tokens credited to a new user account. |
默认值: 20000
示例:
autoRefillEnabled
键:
| Key | Type | Description | Example |
|---|---|---|---|
| autoRefillEnabled | Boolean | 确定是否启用自动充值令牌额度。 | Set to true to enable automatic token refills. |
默认值: false
示例:
refillIntervalValue
键:
| Key | Type | Description | Example |
|---|---|---|---|
| refillIntervalValue | Integer | 指定自动补充 token 额度的时间间隔数值。 | For example, 30 represents a 30-day interval. |
默认值: 30
示例:
refillIntervalUnit
键:
| Key | Type | Description | Example |
|---|---|---|---|
| refillIntervalUnit | String | 指定补充间隔的时间单位(例如 "days"、"hours")。 | Indicates the unit of time for refillIntervalValue. |
默认值: "days"
示例:
refillAmount
键:
| Key | Type | Description | Example |
|---|---|---|---|
| refillAmount | Integer | 指定每次自动充值时添加到用户余额中的 token 数量。 | The amount added to a user’s token credits at each refill interval. |
默认值: 10000
示例:
这篇指南怎么样?