잔액
LibreChat에서 사용자의 토큰 크레딧 잔액 구성하기
개요
balance 객체를 통해 관리자는 LibreChat 내 사용자들의 토큰 크레딧 잔액 관리 방식을 설정할 수 있습니다. 설정 항목에는 잔액 추적 활성화, 사용자 잔액 초기화, 자동 토큰 충전 동작 구성 등이 포함됩니다.
balance 하위 필드:
enabledstartBalanceautoRefillEnabledrefillIntervalValuerefillIntervalUnitrefillAmount
참고:
balance구성은 애플리케이션 전체에 전역적으로 적용됩니다.- 기본값이 제공되지만 요구 사항에 따라 사용자 지정할 수 있습니다.
- 조건부 로직을 사용하면 다른 구성에 따라 이러한 설정을 동적으로 수정할 수 있습니다.
예시
balance:
enabled: false
startBalance: 20000
autoRefillEnabled: false
refillIntervalValue: 30
refillIntervalUnit: "days"
refillAmount: 10000enabled
키:
| Key | Type | Description | Example |
|---|---|---|---|
| enabled | Boolean | 사용자를 위한 토큰 크레딧 추적 및 잔액 관리를 활성화합니다. | Set to true to activate balance tracking for token usage. |
기본값: false
예시:
balance:
enabled: truestartBalance
키:
| Key | Type | Description | Example |
|---|---|---|---|
| startBalance | Integer | 사용자 등록 시 사용자에게 부여되는 초기 토큰 수를 지정합니다. | Tokens credited to a new user account. |
기본값: 20000
예시:
balance:
startBalance: 20000autoRefillEnabled
키:
| Key | Type | Description | Example |
|---|---|---|---|
| autoRefillEnabled | Boolean | 토큰 크레딧 자동 충전 활성화 여부를 결정합니다. | Set to true to enable automatic token refills. |
기본값: false
예시:
balance:
autoRefillEnabled: truerefillIntervalValue
키:
| Key | Type | Description | Example |
|---|---|---|---|
| refillIntervalValue | Integer | 토큰 크레딧이 자동으로 충전되는 간격에 대한 수치 값을 지정합니다. | For example, 30 represents a 30-day interval. |
기본값: 30
예시:
balance:
refillIntervalValue: 30refillIntervalUnit
키:
| Key | Type | Description | Example |
|---|---|---|---|
| refillIntervalUnit | String | 리필 간격에 대한 시간 단위를 지정합니다(예: "days", "hours"). | Indicates the unit of time for refillIntervalValue. |
기본값: "days"
예시:
balance:
refillIntervalUnit: "days"refillAmount
키:
| Key | Type | Description | Example |
|---|---|---|---|
| refillAmount | Integer | 자동 충전 시마다 사용자 잔액에 추가될 토큰 수를 지정합니다. | The amount added to a user’s token credits at each refill interval. |
기본값: 10000
예시:
balance:
refillAmount: 10000이 가이드는 어떤가요?