# bedrock: Add prompt caching support \(\#33194\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0905255fd14df57b4dd250ea31bdda368e62d6ce)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0905255fd14df57b4dd250ea31bdda368e62d6ce

Requested commit: 0905255fd14df57b4dd250ea31bdda368e62d6ce

Commit: 0905255fd14df57b4dd250ea31bdda368e62d6ce

Tree: ee274cb1491d1a9fdb42346959d59c9610be2059

Author: Vladimir Kuznichenkov

Committer: GitHub

## Message

```
bedrock: Add prompt caching support (#33194)

Closes https://github.com/zed-industries/zed/issues/33221

Bedrock has similar to anthropic caching api, if we want to cache
messages up to a certain point, we should add a special block into that
message.

Additionally, we can cache tools definition by adding cache point block
after tools spec.

See: [Bedrock User Guide: Prompt
Caching](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html#prompt-caching-models)

Release Notes:

- bedrock: Added prompt caching support

---------

Co-authored-by: Oleksiy Syvokon <oleksiy@zed.dev>
```

## Parents

- [59aeede50d71cbedca243cab607b4966339db027](https://git.cafe/gitcafe/zed/commit/59aeede50d71cbedca243cab607b4966339db027?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0905255fd14df57b4dd250ea31bdda368e62d6ce?format=markdown)
