Skip to content

Commit 2e7d9d1

Browse files
committed
update example
1 parent d6c9406 commit 2e7d9d1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/my-website/docs/providers/vertex.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,13 +874,17 @@ Vertex AI will return a response containing the `name` of the cached content. Th
874874

875875
#### 3. Use the Cached Content
876876

877-
Use the `name` from the response as `cached_content` in subsequent API calls to reuse the cached information. This is passed in the body of your request to `/chat/completions`.
877+
Use the `name` from the response as `cachedContent` or `cached_content` in subsequent API calls to reuse the cached information. This is passed in the body of your request to `/chat/completions`.
878878

879879
<Tabs>
880880
<TabItem value="proxy" label="PROXY">
881881

882-
```json
883-
{
882+
```bash
883+
884+
curl http://0.0.0.0:4000/chat/completions \
885+
-H "Content-Type: application/json" \
886+
-H "Authorization: Bearer $LITELLM_KEY" \
887+
-d '{
884888
"cachedContent": "projects/545201925769/locations/us-central1/cachedContents/4511135542628319232",
885889
"model": "gemini-2.5-flash",
886890
"messages": [
@@ -889,8 +893,9 @@ Use the `name` from the response as `cached_content` in subsequent API calls to
889893
"content": "what is the book about?"
890894
}
891895
]
892-
}
896+
}'
893897
```
898+
894899
</TabItem>
895900

896901

0 commit comments

Comments
 (0)