# language_models: Remove \`\.unwrap\`s in Bedrock provider \(\#26238\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 97c0a0a86ecc15fcbaf6cca77ae92a3be2521361

Requested commit: 97c0a0a86ecc15fcbaf6cca77ae92a3be2521361

Commit: 97c0a0a86ecc15fcbaf6cca77ae92a3be2521361

Tree: bc89484834319a99aa8c77a9ee438e1a2cb46e1b

Author: Marshall Bowers

Committer: GitHub

## Message

```
language_models: Remove `.unwrap`s in Bedrock provider (#26238)

This PR removes a number of `.unwrap`s in the Bedrock provider.

We must not `.unwrap` in situations where it is not provably safe to do
so, which it was not in any of these cases.

Release Notes:

- Fixed some potential panics in the AWS Bedrock model provider.
```

## Parents

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

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