# Add OpenCode to provider autocomplete enum \(\#55586\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8dd9a5aa984c851a358d1eae96d84ea2ee5b43b6

Requested commit: 8dd9a5aa984c851a358d1eae96d84ea2ee5b43b6

Commit: 8dd9a5aa984c851a358d1eae96d84ea2ee5b43b6

Tree: abf8cf23820ac58aeeb6effa702e729f7d7e918c

Author: Adrian Lumpe

Committer: GitHub

## Message

```
Add OpenCode to provider autocomplete enum (#55586)

The `opencode` built-in provider is registered in the language model
registry
but missing from the JSON schema enum in `LanguageModelProviderSetting`.

<img width="724" height="399" alt="image"
src="https://github.com/user-attachments/assets/33da4626-eb44-443e-b656-65533b3a85f1"
/>
<br>
OpenCode is one of the "first class" providers, so I was surprised it
was missing from the auto-complete for the provider fields in the
settings file.

## Self-Review Checklist

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Release Notes

- N/A
```

## Parents

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

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