mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-18 02:23:44 +00:00
docs prompt caching
This commit is contained in:
@@ -3,7 +3,13 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
# Prompt Caching
|
||||
|
||||
For OpenAI + Anthropic + Deepseek, LiteLLM follows the OpenAI prompt caching usage object format:
|
||||
Supported Providers:
|
||||
- OpenAI (`deepseek/`)
|
||||
- Anthropic API (`anthropic/`)
|
||||
- Bedrock (`bedrock/`, `bedrock/invoke/`, `bedrock/converse`) ([All models bedrock supports prompt caching on](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html))
|
||||
- Deepseek API (`deepseek/`)
|
||||
|
||||
For the supported providers, LiteLLM follows the OpenAI prompt caching usage object format:
|
||||
|
||||
```bash
|
||||
"usage": {
|
||||
|
||||
@@ -55,8 +55,8 @@ Here's a Demo Instance to test changes:
|
||||
|
||||
3. **New models**
|
||||
|
||||
- Support OpenRouter `reasoning_content` on streaming **MISSING DOC**
|
||||
- Support Bedrock converse cache token tracking **MISSING DOC**
|
||||
- Support OpenRouter `reasoning_content` on streaming [Get Started](https://docs.litellm.ai/docs/reasoning_content)
|
||||
- Support Bedrock converse cache token tracking [Get Started](https://docs.litellm.ai/docs/completion/prompt_caching)
|
||||
|
||||
4. **Bug Fixes**
|
||||
- Fix Bedrock chunk parsing [PR](https://github.com/BerriAI/litellm/pull/9166)
|
||||
|
||||
Reference in New Issue
Block a user