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トークンクレジットが自動的に補充される間隔の数値を指定します。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自動リフィルごとにユーザーの残高に追加されるトークン数を指定します。The amount added to a user’s token credits at each refill interval.

デフォルト: 10000

例:

balance:
  refillAmount: 10000

このガイドはいかがでしたか?