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

Guthaben

Konfigurieren von Token-Guthaben für Benutzer in LibreChat

Übersicht

Das balance-Objekt ermöglicht es Administratoren zu konfigurieren, wie Token-Guthaben für Benutzer innerhalb von LibreChat verwaltet werden. Zu den Einstellungen gehören die Aktivierung der Guthabenverfolgung, die Initialisierung von Benutzerguthaben und die Konfiguration des automatischen Token-Aufladeverhaltens.

Felder unter balance:

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

Hinweise:

  • balance Konfigurationen gelten global für die gesamte Anwendung.
  • Es werden Standardwerte bereitgestellt, die jedoch je nach Anforderungen angepasst werden können.
  • Bedingte Logik kann diese Einstellungen basierend auf anderen Konfigurationen dynamisch ändern.

Beispiel

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

enabled

Schlüssel:

KeyTypeDescriptionExample
enabledBooleanAktiviert die Token-Guthabenverfolgung und die Kontostandsverwaltung für Benutzer.Set to true to activate balance tracking for token usage.

Standard: false

Beispiel:

balance:
  enabled: true

startBalance

Schlüssel:

KeyTypeDescriptionExample
startBalanceIntegerGibt die anfängliche Anzahl an Tokens an, die einem Benutzer bei der Registrierung gutgeschrieben werden.Tokens credited to a new user account.

Standard: 20000

Beispiel:

balance:
  startBalance: 20000

autoRefillEnabled

Schlüssel:

KeyTypeDescriptionExample
autoRefillEnabledBooleanBestimmt, ob die automatische Aufladung von Token-Credits aktiviert ist.Set to true to enable automatic token refills.

Standard: false

Beispiel:

balance:
  autoRefillEnabled: true

refillIntervalValue

Schlüssel:

KeyTypeDescriptionExample
refillIntervalValueIntegerGibt den numerischen Wert für das Intervall an, in dem Token-Credits automatisch aufgefüllt werden.For example, 30 represents a 30-day interval.

Standard: 30

Beispiel:

balance:
  refillIntervalValue: 30

refillIntervalUnit

Schlüssel:

KeyTypeDescriptionExample
refillIntervalUnitStringGibt die Zeiteinheit für das Auffüllintervall an (z. B. "days", "hours").Indicates the unit of time for refillIntervalValue.

Standard: "days"

Beispiel:

balance:
  refillIntervalUnit: "days"

refillAmount

Schlüssel:

KeyTypeDescriptionExample
refillAmountIntegerGibt die Anzahl der Token an, die dem Guthaben des Benutzers bei jeder automatischen Auffüllung hinzugefügt werden.The amount added to a user’s token credits at each refill interval.

Standard: 10000

Beispiel:

balance:
  refillAmount: 10000

Wie finden Sie diese Anleitung?