-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -696,7 +696,8 @@ see: **[Token Usage](/docs/configuration/token_usage)** | |
#### Managing Balances | ||
|
||
- Run `npm run add-balance` to manually add balances. | ||
- You can also specify the email and token credit amount to add, e.g.: `npm run add-balance [email protected] 1000` | ||
- You can also specify the email and token credit amount to add, e.g.: `npm run add-balance [email protected] 1000` | ||
- Run `npm run set-balance` to manually set balances, similar to `add-balance`. | ||
- Run `npm run list-balances` to list the balance of every user. | ||
|
||
> **Note:** 1000 credits = $0.001 (1 mill USD) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,16 @@ npm run add-balance | |
npm run add-balance [email protected] 1000 | ||
``` | ||
|
||
Additionally, you can set a balance for a user. An existing balance will be overwritten by the new balance. | ||
|
||
```bash filename="To manually set balances, run the following command (npm required):" | ||
npm run set-balance | ||
``` | ||
|
||
```bash filename="You can also specify the email and token credit amount to set, e.g.:" | ||
npm run set-balance [email protected] 1000 | ||
``` | ||
|
||
This works well to track your own usage for personal use; 1000 credits = $0.001 (1 mill USD) | ||
|
||
## Listing of balances | ||
|