Skip to content

Skip passing thoughts to OpenAI compatible APIs because they don't support marking them as such#154

Merged
felixarntz merged 1 commit intotrunkfrom
fix/openai-compatible-not-supporting-thoughts
Dec 30, 2025
Merged

Skip passing thoughts to OpenAI compatible APIs because they don't support marking them as such#154
felixarntz merged 1 commit intotrunkfrom
fix/openai-compatible-not-supporting-thoughts

Conversation

@felixarntz
Copy link
Copy Markdown
Member

There is no way in the OpenAI chat/completions specification to mark input message content as thoughts/reasoning. So far we're just passing all text through as regular content, which can lead to model confusion because it can't differentiate between actual model responses and thoughts from previous turns.

Therefore, it's safer to skip them entirely. Thoughts should not matter too much for subsequent turns. Ideally this would be supported by the API, but the tradeoff of skipping is safer.

@felixarntz felixarntz added this to the 0.4.0 milestone Dec 22, 2025
@felixarntz felixarntz added the [Type] Bug An existing feature does not function as intended label Dec 22, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 22, 2025

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: felixarntz <flixos90@git.wordpress.org>
Co-authored-by: JasonTheAdams <jason_the_adams@git.wordpress.org>

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

@felixarntz felixarntz merged commit 0c8d33e into trunk Dec 30, 2025
7 checks passed
@felixarntz felixarntz deleted the fix/openai-compatible-not-supporting-thoughts branch December 30, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug An existing feature does not function as intended

2 participants