Saldo
Configura i saldi dei crediti token per gli utenti in LibreChat
Panoramica
L'oggetto balance consente agli amministratori di configurare come vengono gestiti i saldi dei crediti dei token per gli utenti all'interno di LibreChat. Le impostazioni includono l'abilitazione del monitoraggio del saldo, l'inizializzazione dei saldi utente e la configurazione del comportamento di ricarica automatica dei token.
Campi sotto balance:
enabledstartBalanceautoRefillEnabledrefillIntervalValuerefillIntervalUnitrefillAmount
Note:
- Le configurazioni
balancesi applicano globalmente a tutta l'applicazione. - I valori predefiniti sono forniti ma possono essere personalizzati in base ai requisiti.
- La logica condizionale può modificare dinamicamente queste impostazioni in base ad altre configurazioni.
Esempio
balance:
enabled: false
startBalance: 20000
autoRefillEnabled: false
refillIntervalValue: 30
refillIntervalUnit: "days"
refillAmount: 10000enabled
Chiave:
| Key | Type | Description | Example |
|---|---|---|---|
| enabled | Boolean | Abilita il monitoraggio dei crediti token e la gestione del saldo per gli utenti. | Set to true to activate balance tracking for token usage. |
Predefinito: false
Esempio:
balance:
enabled: truestartBalance
Chiave:
| Key | Type | Description | Example |
|---|---|---|---|
| startBalance | Integer | Specifica il numero iniziale di token accreditati a un utente al momento della registrazione. | Tokens credited to a new user account. |
Predefinito: 20000
Esempio:
balance:
startBalance: 20000autoRefillEnabled
Chiave:
| Key | Type | Description | Example |
|---|---|---|---|
| autoRefillEnabled | Boolean | Determina se il ripristino automatico dei crediti token è abilitato. | Set to true to enable automatic token refills. |
Predefinito: false
Esempio:
balance:
autoRefillEnabled: truerefillIntervalValue
Chiave:
| Key | Type | Description | Example |
|---|---|---|---|
| refillIntervalValue | Integer | Specifica il valore numerico per l'intervallo in cui i crediti dei token vengono ricaricati automaticamente. | For example, 30 represents a 30-day interval. |
Predefinito: 30
Esempio:
balance:
refillIntervalValue: 30refillIntervalUnit
Chiave:
| Key | Type | Description | Example |
|---|---|---|---|
| refillIntervalUnit | String | Specifica l'unità di tempo per l'intervallo di ricarica (ad esempio, "days", "hours"). | Indicates the unit of time for refillIntervalValue. |
Predefinito: "days"
Esempio:
balance:
refillIntervalUnit: "days"refillAmount
Chiave:
| Key | Type | Description | Example |
|---|---|---|---|
| refillAmount | Integer | Specifica il numero di token da aggiungere al saldo dell'utente durante ogni ricarica automatica. | The amount added to a user’s token credits at each refill interval. |
Predefinito: 10000
Esempio:
balance:
refillAmount: 10000Com’è questa guida?