# Fix error when requesting completion to Copilot Chat without tools \(\#30007\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0f50e6b1d10be9c5b826483c7ac8398cb826d56b

Requested commit: 0f50e6b1d10be9c5b826483c7ac8398cb826d56b

Commit: 0f50e6b1d10be9c5b826483c7ac8398cb826d56b

Tree: 806a3a7a5bf1f5eda49dd9cacedfcce15f3decbb

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix error when requesting completion to Copilot Chat without tools (#30007)

The API will return a Bad Request (with no error message) when tools
were used previously in the conversation but no tools are provided as
part of a new request.

Inserting a dummy tool seems to circumvent this error.

Release Notes:

- Fixed an error that could sometimes occur when editing using Copilot
Chat.

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

## Parents

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

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