Skip to content

Commit 75ce340

Browse files
authored
Fix cost render issue + missing page nav (#1369)
Quick fix for rendering $ in body text and adding page into navigation.
1 parent dcbfe63 commit 75ce340

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,8 @@
971971
"langsmith/compare-traces",
972972
"langsmith/share-trace",
973973
"langsmith/platform-logs",
974-
"langsmith/data-export"
974+
"langsmith/data-export",
975+
"langsmith/calculate-token-based-costs"
975976
]
976977
},
977978
{

src/langsmith/calculate-token-based-costs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ephemeral_5m_input_tokens
7878

7979
## Cost formula
8080

81-
The cost for a run is computed greedily from most-to-lease specific token type. Suppose we set a price of $2 per 1M prompt tokens with a detailed price of $1 per 1M `cache_read` prompt tokens, and $3 per 1M completion tokens. If we uploaded the following usage metadata:
81+
The cost for a run is computed greedily from most-to-lease specific token type. Suppose we set a price of \$2 per 1M prompt tokens with a detailed price of \$1 per 1M `cache_read` prompt tokens, and \$3 per 1M completion tokens. If we uploaded the following usage metadata:
8282

8383
```python
8484
{

0 commit comments

Comments
 (0)