Skip to content

Commit 02abe25

Browse files
committed
Add entries to search endpoint
1 parent 30a0b42 commit 02abe25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ GET https://[host]/v1/caches/{cacheId}/health
5353

5454
### Search LangCache for similar responses
5555

56-
Use `POST /v1/caches/{cacheId}/search` to search the cache for matching responses to a user prompt.
56+
Use `POST /v1/caches/{cacheId}/entries/search` to search the cache for matching responses to a user prompt.
5757

5858
```sh
59-
POST https://[host]/v1/caches/{cacheId}/search
59+
POST https://[host]/v1/caches/{cacheId}/entries/search
6060
{
6161
"prompt": "User prompt text"
6262
}
@@ -69,7 +69,7 @@ If LangCache does not return a response, you should call your LLM's REST API to
6969
You can also scope the responses returned from LangCache by adding an `attributes` object to the request. LangCache will only return responses that match the attributes you specify.
7070

7171
```sh
72-
POST https://[host]/v1/caches/{cacheId}/search
72+
POST https://[host]/v1/caches/{cacheId}/entries/search
7373
{
7474
"prompt": "User prompt text",
7575
"attributes": {

0 commit comments

Comments
 (0)