Skip to content

Conversation

@jmarx
Copy link

@jmarx jmarx commented Jan 23, 2026

Fix bug that appears when trying to send a text-only message through the OpenAI Responses API. The API rejects messages with type: 'input_text' and expects plain strings for text-only content. This fix sends text-only messages as strings while maintaining object format for messages with files.

Fixes #182

@github-actions
Copy link

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: jmarx <jmarx75@git.wordpress.org>

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

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.

Bug: OpenAI Responses API rejects text-only messages with 'input_text' type

1 participant