# assistant: Limit amount of concurrent completion requests \(\#13856\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c4dbe32f203d985c21fa7377e24879e8f417163b

Requested commit: c4dbe32f203d985c21fa7377e24879e8f417163b

Commit: c4dbe32f203d985c21fa7377e24879e8f417163b

Tree: 6f72b05fece2e46e13860c0cfdea6a15029be24b

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
assistant: Limit amount of concurrent completion requests (#13856)

This PR refactors the completion providers to only process a maximum
amount of completion requests at a time.

Also started refactoring language model providers to use traits, so it's
easier to allow specifying multiple providers in the future.

Release Notes:

- N/A
```

## Parents

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

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