# language_models: Add vision support for OpenAI gpt-5, gpt-5-mini, and gpt-5-nano models \(\#36047\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9de04ce21528d23ac81e5292b4d963579539abf6

Requested commit: 9de04ce21528d23ac81e5292b4d963579539abf6

Commit: 9de04ce21528d23ac81e5292b4d963579539abf6

Tree: b7154ef782cdf900cde4cf768fe78594cd36128f

Author: Rishabh Bothra

Committer: GitHub

## Message

```
language_models: Add vision support for OpenAI gpt-5, gpt-5-mini, and gpt-5-nano models (#36047)

## Summary
Enable image processing capabilities for GPT-5 series models by updating
the `supports_images()` method.

## Changes
- Add vision support for `gpt-5`, `gpt-5-mini`, and `gpt-5-nano` models
- Update `supports_images()` method in
`crates/language_models/src/provider/open_ai.rs`

## Models with Vision Support (after this PR)
- gpt-4o
- gpt-4o-mini
- gpt-4.1
- gpt-4.1-mini
- gpt-4.1-nano
- gpt-5 (new)
- gpt-5-mini (new)
- gpt-5-nano (new)
- o1
- o3
- o4-mini

This brings GPT-5 vision capabilities in line with other OpenAI models
that support image processing.

Release Notes:

- Added vision support for OpenAI models
```

## Parents

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

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