# open_ai: Fix tool output for /responses endpoint \(\#51789\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 38b7c76198ec5b57334eec77f58291c821fc7d2e

Requested commit: 38b7c76198ec5b57334eec77f58291c821fc7d2e

Commit: 38b7c76198ec5b57334eec77f58291c821fc7d2e

Tree: a1237f7ea5ac9bfe2334047e660607667d96dd9d

Author: Ben Brandt

Committer: GitHub

## Message

```
open_ai: Fix tool output for /responses endpoint (#51789)

We were sending the raw tool debug output as JSON to the model rather
than whatever the tool intended as content for the model.
Which meant we were sending unneeded information to the model, which
matters in the edit tool case.

Release Notes:

- N/A
```

## Parents

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

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