# anthropic: Pass beta header for speed in BYOK \(\#57707\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 49fe1fcad5d8676bc7c6e8919a9f59cec4f6843c

Requested commit: 49fe1fcad5d8676bc7c6e8919a9f59cec4f6843c

Commit: 49fe1fcad5d8676bc7c6e8919a9f59cec4f6843c

Tree: 19a25f5f47f522fa5946637055f4da722f7a8897

Author: Tom Houlé

Committer: GitHub

## Message

```
anthropic: Pass beta header for speed in BYOK (#57707)

We were sending the `speed` field set to `"standard"` for BYOK Anthropic
but without the corresponding beta header. leading the requests to fail
with "invalid request format to Anthropic's API: speed: Extra inputs are
not permitted".

This makes sure to attach the beta header whenever the `speed` parameter
is used.

Release Notes:

- Fixed "speed: Extra inputs are not permitted" errors for Opus 4.6 and
4.7 in the Anthropic API provider.
```

## Parents

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

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