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