mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-09 12:08:50 +01:00
📝 docs: clarifications - override file & balance/token count (#1783)
* 📝 docs: override file clarification * 📝 docs: override file clarification * 📝 docs: balance & token count clarification
This commit is contained in:
parent
d8d79aba16
commit
7ff2418d87
4 changed files with 63 additions and 8 deletions
|
|
@ -48,6 +48,42 @@ npm run list-balances
|
|||
|
||||

|
||||
|
||||
## More details
|
||||
source: [LibreChat/discussions/1640](https://github.com/danny-avila/LibreChat/discussions/1640#discussioncomment-8251970)
|
||||
|
||||
> "rawAmount": -000, // what's this?
|
||||
|
||||
Raw amount of tokens as counted per the tokenizer algorithm.
|
||||
|
||||
> "tokenValue": -00000, // what's this?
|
||||
|
||||
Token credits value. 1000 credits = $0.001 (1 mill USD)
|
||||
|
||||
> "rate": 00, // what's this?
|
||||
|
||||
The rate at which tokens are charged as credits.
|
||||
|
||||
For example, gpt-3.5-turbo-1106 has a rate of 1 for user prompt (input) and 2 for completion (output)
|
||||
|
||||
| Model | Input | Output |
|
||||
|-----------------------|----------------------|----------------------|
|
||||
| gpt-3.5-turbo-1106 | $0.0010 / 1K tokens | $0.0020 / 1K tokens |
|
||||
|
||||
|
||||
Given the provided example:
|
||||
|
||||
"rawAmount": -137
|
||||
"tokenValue": -205.5
|
||||
"rate": 1.5
|
||||
|
||||

|
||||
|
||||
And to get the real amount of USD spend based on **Token Value**:
|
||||
|
||||

|
||||
|
||||
The relevant file for editing rates is found in `api/models/tx.js`
|
||||
|
||||
## Preview
|
||||
|
||||

|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue