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

잔액

LibreChat에서 사용자의 토큰 크레딧 잔액 구성하기

개요

balance 객체를 통해 관리자는 LibreChat 내 사용자들의 토큰 크레딧 잔액 관리 방식을 설정할 수 있습니다. 설정 항목에는 잔액 추적 활성화, 사용자 잔액 초기화, 자동 토큰 충전 동작 구성 등이 포함됩니다.

balance 하위 필드:

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

참고:

  • balance 구성은 애플리케이션 전체에 전역적으로 적용됩니다.
  • 기본값이 제공되지만 요구 사항에 따라 사용자 지정할 수 있습니다.
  • 조건부 로직을 사용하면 다른 구성에 따라 이러한 설정을 동적으로 수정할 수 있습니다.

예시

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

enabled

키:

KeyTypeDescriptionExample
enabledBoolean사용자를 위한 토큰 크레딧 추적 및 잔액 관리를 활성화합니다.Set to true to activate balance tracking for token usage.

기본값: false

예시:

balance:
  enabled: true

startBalance

키:

KeyTypeDescriptionExample
startBalanceInteger사용자 등록 시 사용자에게 부여되는 초기 토큰 수를 지정합니다.Tokens credited to a new user account.

기본값: 20000

예시:

balance:
  startBalance: 20000

autoRefillEnabled

키:

KeyTypeDescriptionExample
autoRefillEnabledBoolean토큰 크레딧 자동 충전 활성화 여부를 결정합니다.Set to true to enable automatic token refills.

기본값: false

예시:

balance:
  autoRefillEnabled: true

refillIntervalValue

키:

KeyTypeDescriptionExample
refillIntervalValueInteger토큰 크레딧이 자동으로 충전되는 간격에 대한 수치 값을 지정합니다.For example, 30 represents a 30-day interval.

기본값: 30

예시:

balance:
  refillIntervalValue: 30

refillIntervalUnit

키:

KeyTypeDescriptionExample
refillIntervalUnitString리필 간격에 대한 시간 단위를 지정합니다(예: "days", "hours").Indicates the unit of time for refillIntervalValue.

기본값: "days"

예시:

balance:
  refillIntervalUnit: "days"

refillAmount

키:

KeyTypeDescriptionExample
refillAmountInteger자동 충전 시마다 사용자 잔액에 추가될 토큰 수를 지정합니다.The amount added to a user’s token credits at each refill interval.

기본값: 10000

예시:

balance:
  refillAmount: 10000

이 가이드는 어떤가요?