Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

余额

在 LibreChat 中为用户配置代币额度余额

概述

balance 对象允许管理员配置 LibreChat 中用户积分余额的管理方式。设置包括启用余额跟踪、初始化用户余额以及配置自动充值行为。

balance 下的字段:

  • enabled
  • startBalance
  • autoRefillEnabled
  • refillIntervalValue
  • refillIntervalUnit
  • refillAmount

注意:

  • balance 配置适用于整个应用程序。
  • 系统已提供默认值,但可以根据需求进行自定义。
  • 条件逻辑可以根据其他配置动态修改这些设置。

示例

balance:
  enabled: false
  startBalance: 20000
  autoRefillEnabled: false
  refillIntervalValue: 30
  refillIntervalUnit: "days"
  refillAmount: 10000

enabled

键:

KeyTypeDescriptionExample
enabledBoolean启用用户的积分额度跟踪和余额管理。Set to true to activate balance tracking for token usage.

默认值: false

示例:

balance:
  enabled: true

startBalance

键:

KeyTypeDescriptionExample
startBalanceInteger指定用户注册时初始获得的积分令牌数量。Tokens credited to a new user account.

默认值: 20000

示例:

balance:
  startBalance: 20000

autoRefillEnabled

键:

KeyTypeDescriptionExample
autoRefillEnabledBoolean确定是否启用自动充值令牌额度。Set to true to enable automatic token refills.

默认值: false

示例:

balance:
  autoRefillEnabled: true

refillIntervalValue

键:

KeyTypeDescriptionExample
refillIntervalValueInteger指定自动补充 token 额度的时间间隔数值。For example, 30 represents a 30-day interval.

默认值: 30

示例:

balance:
  refillIntervalValue: 30

refillIntervalUnit

键:

KeyTypeDescriptionExample
refillIntervalUnitString指定补充间隔的时间单位(例如 "days"、"hours")。Indicates the unit of time for refillIntervalValue.

默认值: "days"

示例:

balance:
  refillIntervalUnit: "days"

refillAmount

键:

KeyTypeDescriptionExample
refillAmountInteger指定每次自动充值时添加到用户余额中的 token 数量。The amount added to a user’s token credits at each refill interval.

默认值: 10000

示例:

balance:
  refillAmount: 10000

这篇指南怎么样?