# openai: Don't append tool calls to prior assistant messages \(\#29969\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2eb10ab9fbb480af89c90cd2e29ef92358814a28

Requested commit: 2eb10ab9fbb480af89c90cd2e29ef92358814a28

Commit: 2eb10ab9fbb480af89c90cd2e29ef92358814a28

Tree: 3b61772696da16c88115663cfd32e8fc44063219

Author: Max Brunsfeld

Committer: GitHub

## Message

```
openai: Don't append tool calls to prior assistant messages (#29969)

Closes https://github.com/zed-industries/zed/issues/29821

Release Notes:

- Fixed an issue in the agent panel where OpenAI requests would fail if
the assistant begins its response with a tool call.
```

## Parents

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

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