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

Saldo

Skonfiguruj salda kredytów tokenów dla użytkowników w LibreChat

Przegląd

Obiekt balance pozwala administratorom na konfigurowanie sposobu zarządzania saldem kredytów tokenów dla użytkowników w ramach LibreChat. Ustawienia obejmują włączanie śledzenia salda, inicjalizację sald użytkowników oraz konfigurowanie zachowania automatycznego uzupełniania tokenów.

Pola w sekcji balance:

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

Uwagi:

  • Konfiguracje balance mają zastosowanie globalne w całej aplikacji.
  • Domyślne ustawienia są zapewnione, ale można je dostosować w zależności od wymagań.
  • Logika warunkowa może dynamicznie modyfikować te ustawienia w oparciu o inne konfiguracje.

Przykład

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

enabled

Klucz:

KeyTypeDescriptionExample
enabledBooleanUmożliwia śledzenie kredytów tokenów i zarządzanie saldem użytkowników.Set to true to activate balance tracking for token usage.

Domyślnie: false

Przykład:

balance:
  enabled: true

startBalance

Klucz:

KeyTypeDescriptionExample
startBalanceIntegerOkreśla początkową liczbę tokenów przyznawanych użytkownikowi podczas rejestracji.Tokens credited to a new user account.

Domyślnie: 20000

Przykład:

balance:
  startBalance: 20000

autoRefillEnabled

Klucz:

KeyTypeDescriptionExample
autoRefillEnabledBooleanOkreśla, czy automatyczne uzupełnianie kredytów tokenów jest włączone.Set to true to enable automatic token refills.

Domyślnie: false

Przykład:

balance:
  autoRefillEnabled: true

refillIntervalValue

Klucz:

KeyTypeDescriptionExample
refillIntervalValueIntegerOkreśla wartość liczbową interwału, w którym kredyty tokenów są automatycznie uzupełniane.For example, 30 represents a 30-day interval.

Domyślnie: 30

Przykład:

balance:
  refillIntervalValue: 30

refillIntervalUnit

Klucz:

KeyTypeDescriptionExample
refillIntervalUnitStringOkreśla jednostkę czasu dla interwału uzupełniania (np. "days", "hours").Indicates the unit of time for refillIntervalValue.

Domyślnie: "days"

Przykład:

balance:
  refillIntervalUnit: "days"

refillAmount

Klucz:

KeyTypeDescriptionExample
refillAmountIntegerOkreśla liczbę tokenów dodawanych do salda użytkownika podczas każdego automatycznego doładowania.The amount added to a user’s token credits at each refill interval.

Domyślnie: 10000

Przykład:

balance:
  refillAmount: 10000

Jaka jest ta instrukcja?