Skip to content

Commit 502671d

Browse files
committed
Remove other ref to health check
1 parent 823a7c9 commit 502671d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/develop/ai/langcache/api-examples.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ To access the LangCache API, you need:
2121

2222
When you call the API, you need to pass the LangCache API key in the `Authorization` header as a Bearer token and the Cache ID as the `cacheId` path parameter.
2323

24-
For example, to check the health of the cache using `cURL`:
24+
For example, to search the cache using `cURL`:
2525

2626
```bash
27-
curl -s -X GET "https://$HOST/v1/caches/$CACHE_ID/health" \
27+
curl -s -X POST "https://$HOST/v1/caches/$CACHE_ID/entires/search" \
2828
-H "accept: application/json" \
29-
-H "Authorization: Bearer $API_KEY"
29+
-H "Authorization: Bearer $API_KEY" \
30+
-d "{ 'prompt': 'What is semantic caching' }"
3031
```
3132

3233
- The example expects several variables to be set in the shell:

0 commit comments

Comments
 (0)