docs(cost_tracking.md): add litellm cost in proxy response headers to docs

This commit is contained in:
Krrish Dholakia 2024-06-26 18:14:21 -07:00
parent 539ecf9842
commit 8ef824cb66
2 changed files with 12 additions and 0 deletions

View file

@ -114,6 +114,14 @@ print(response)
**Step3 - Verify Spend Tracked** **Step3 - Verify Spend Tracked**
That's IT. Now Verify your spend was tracked That's IT. Now Verify your spend was tracked
<Tabs>
<TabItem value="curl" label="Response Headers">
<Image img={require('../../img/response_cost_img.png')} />
</TabItem>
<TabItem value="db" label="DB + UI">
The following spend gets tracked in Table `LiteLLM_SpendLogs` The following spend gets tracked in Table `LiteLLM_SpendLogs`
```json ```json
@ -144,6 +152,10 @@ Use the `/global/spend/report` endpoint to get daily spend report per
- team - team
- customer [this is `user` passed to `/chat/completions` request](#how-to-track-spend-with-litellm) - customer [this is `user` passed to `/chat/completions` request](#how-to-track-spend-with-litellm)
</TabItem>
</Tabs>
<Tabs> <Tabs>
<TabItem value="per team" label="Spend Per Team"> <TabItem value="per team" label="Spend Per Team">

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB