Skip to content

Commit d10ef68

Browse files
committed
LangCache: Edit cURL command and add Savings calculator
1 parent 7a0c7c6 commit d10ef68

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For example:
3434
curl -s -X POST "https://$HOST/v1/caches/$CACHE_ID/entries/search" \
3535
-H "accept: application/json" \
3636
-H "Authorization: Bearer $API_KEY" \
37-
-d "{ 'prompt': 'What is semantic caching' }"
37+
-d '{ "prompt": "What is semantic caching" }'
3838
{{< /clients-example >}}
3939

4040
This example expects several variables to be set in the shell:

content/embeds/langcache-cost-reduction.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ Here’s an example:
1818

1919
{{<note>}}
2020
The formula and numbers above provide a rough estimate of your monthly savings. Actual savings will vary depending on your usage.
21-
{{</note>}}
21+
{{</note>}}
22+
23+
You can also use the [LangCache savings calculator](https://redis.io/calculator/langcache/) to estimate your annual savings with LangCache.

0 commit comments

Comments
 (0)