# copilot: Wire up reasoning tokens for GPT models \(\#53313\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1115f768c9b714f397ea6b9bfebebd4655e707c5

Requested commit: 1115f768c9b714f397ea6b9bfebebd4655e707c5

Commit: 1115f768c9b714f397ea6b9bfebebd4655e707c5

Tree: e06284dea341ea9792c0355e0fcce590db1b029d

Author: Abhishek Tripathi

Committer: GitHub

## Message

```
copilot: Wire up reasoning tokens for GPT models (#53313)

Fix two issues with reasoning support in the Copilot provider:

- Responses API path: use the user's thinking_effort setting instead of
hardcoding Medium effort
- Chat Completions path: compute and pass thinking_budget when thinking
is enabled, instead of unconditionally setting it to None

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #52140

Release Notes:

- Fixed a bug where copilot wouldn't use the thinking level the user's
have set

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
```

## Parents

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

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