# agent: Fix Mistral tool use error message \(\#34692\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 29111304dde348a00fbceca71183bd30703175b8

Requested commit: 29111304dde348a00fbceca71183bd30703175b8

Commit: 29111304dde348a00fbceca71183bd30703175b8

Tree: d684165b4e446fdd0068496c9f9469fed035475f

Author: Oleksandr Mykhailenko

Committer: GitHub

## Message

```
agent: Fix Mistral tool use error message (#34692)

Closes #32675

Exactly the same changes as in #33640 by @sviande

The PR has been in WIP state for 3 weeks with no activity, and the issue
basically makes Mistral models unusable. I have tested the changes
locally, and it does indeed work. Full credit goes to @sviande, I just
want this feature to be finished.

Release Notes:

- agent: Fixed an issue with tool calling with the Mistral provider
(thanks [@sviande](https://github.com/sviande) and
[@armyhaylenko](https://github.com/armyhaylenko))

Co-authored-by: sviande <sviande@gmail.com>
```

## Parents

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

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