Skip to content

fix(OpenAI): parse reasoning_text content of conversation messages - #842

Merged
iBotPeaches merged 1 commit into
openai-php:mainfrom
skybleak333:conversation-message-reasoning-text
Nov 11, 2026
Merged

iBotPeaches merged 1 commit into
openai-php:mainfrom
skybleak333:conversation-message-reasoning-text

Conversation

@skybleak333

Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

A conversation message can hold reasoning_text content (ContentReasoningText in openai-python's conversations/message.py, added in "feat(api): add reasoning_text"). Conversations\Objects\Message matched content types without it and no default, so retrieving or listing conversation items that contain such a message failed with UnhandledMatchError.

Adds MessageTypes\ReasoningText (text, type) and maps it in Message. The new ConversationItem test fails on main with UnhandledMatchError. The full suite, Pint and PHPStan pass.

@iBotPeaches
iBotPeaches merged commit 58b68db into openai-php:main Nov 11, 2026
14 checks passed
@iBotPeaches

Copy link
Copy Markdown
Collaborator

thanks for stream of fixes!

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.

2 participants