# language_models: Use \`message\` field from Cloud error responses, if present \(\#38286\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 26202e5af2341655e0d3fc6b2e62ec1faa22ea47

Requested commit: 26202e5af2341655e0d3fc6b2e62ec1faa22ea47

Commit: 26202e5af2341655e0d3fc6b2e62ec1faa22ea47

Tree: df3b4c4cdc9f41d266640b3daf4e5192a2b7fc45

Author: Marshall Bowers

Committer: GitHub

## Message

```
language_models: Use `message` field from Cloud error responses, if present (#38286)

This PR updates the Cloud language model provider to use the `message`
field from the Cloud error response, if it is present.

Previously we would always show the entire JSON payload in the error
message, but with this change we can show just the user-facing `message`
the error response is in a shape that we recognize.

Release Notes:

- N/A
```

## Parents

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

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