Skip to content

Better mapping of models that support multimodal inputs#22

Merged
felixarntz merged 1 commit into
WordPress:trunkfrom
dkotter:fix/multimodal-model-mapping
May 5, 2026
Merged

Better mapping of models that support multimodal inputs#22
felixarntz merged 1 commit into
WordPress:trunkfrom
dkotter:fix/multimodal-model-mapping

Conversation

@dkotter
Copy link
Copy Markdown
Collaborator

@dkotter dkotter commented Apr 29, 2026

What?

Closes #21

Ensure we support a wider-range of models for multimodal input

Why?

At the moment it seems the only models we return when someone wants a model that supports multimodal inputs is gpt-4o* models, even though OpenAI has lots of other models that will work for this request. We also only consider o1* models though there's o3* and o4* models now.

This PR updates our mapping logic to better support a wider range of models.

How?

  • Expand our initial check from just gpt-4o and o1 models to also include o3 and o4 and exclude -transcribe
  • Add a new helper method, supportsMultimodalTextInput, and use that to determine if a model ID is supported for multimodal input. This method matches on a wider range of model IDs, including gpt-4.1* and gpt-5* models

Use of AI Tools

AI assistance: Yes
Tool(s): Cursor
Model(s): GPT-5.5
Used for: Validate the bug and propose a fix. Manual testing done by me

…ensure we account for models besides just gpt-4o. Also ensure we support o3 and o4 models instead of just o1
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: dkotter <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@jeffpaul jeffpaul added this to the 1.1.0 milestone May 4, 2026
Copy link
Copy Markdown
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dkotter!

@felixarntz felixarntz merged commit cd94edd into WordPress:trunk May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only consider gpt-4o models as multimodal

3 participants