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

Saldo

Configureer token-kredietsaldi voor gebruikers in LibreChat

Overzicht

Het balance object stelt beheerders in staat om te configureren hoe token-kredietsaldi voor gebruikers binnen LibreChat worden beheerd. Instellingen omvatten het inschakelen van saldobijhouding, het initialiseren van gebruikerssaldi en het configureren van automatisch token-aanvulgedrag.

Velden onder balance:

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

Opmerkingen:

  • balance configuraties zijn wereldwijd van toepassing op de gehele applicatie.
  • Standaardinstellingen zijn aanwezig, maar kunnen naar behoefte worden aangepast.
  • Voorwaardelijke logica kan deze instellingen dynamisch aanpassen op basis van andere configuraties.

Voorbeeld

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

enabled

Sleutel:

KeyTypeDescriptionExample
enabledBooleanSchakelt het bijhouden van token-tegoed en balansbeheer voor gebruikers in.Set to true to activate balance tracking for token usage.

Standaard: false

Voorbeeld:

balance:
  enabled: true

startBalance

Sleutel:

KeyTypeDescriptionExample
startBalanceIntegerSpecificeert het initiële aantal tokens dat aan een gebruiker wordt toegekend bij registratie.Tokens credited to a new user account.

Standaard: 20000

Voorbeeld:

balance:
  startBalance: 20000

autoRefillEnabled

Sleutel:

KeyTypeDescriptionExample
autoRefillEnabledBooleanBepaalt of automatisch opwaarderen van token-credits is ingeschakeld.Set to true to enable automatic token refills.

Standaard: false

Voorbeeld:

balance:
  autoRefillEnabled: true

refillIntervalValue

Sleutel:

KeyTypeDescriptionExample
refillIntervalValueIntegerSpecificeert de numerieke waarde voor het interval waarna token-credits automatisch worden aangevuld.For example, 30 represents a 30-day interval.

Standaard: 30

Voorbeeld:

balance:
  refillIntervalValue: 30

refillIntervalUnit

Sleutel:

KeyTypeDescriptionExample
refillIntervalUnitStringSpecificeert de tijdseenheid voor het bijvulinterval (bijv. "days", "hours").Indicates the unit of time for refillIntervalValue.

Standaard: "days"

Voorbeeld:

balance:
  refillIntervalUnit: "days"

refillAmount

Sleutel:

KeyTypeDescriptionExample
refillAmountIntegerSpecificeert het aantal tokens dat tijdens elke automatische aanvulling aan het saldo van de gebruiker wordt toegevoegd.The amount added to a user’s token credits at each refill interval.

Standaard: 10000

Voorbeeld:

balance:
  refillAmount: 10000

Hoe is deze gids?