Skip to content

fix(adapters): support Responses API text content parts - #1591

Open
mikemikimike wants to merge 1 commit into
i-am-bee:mainfrom
mikemikimike:codex/1589-easy-input-message
Open

fix(adapters): support Responses API text content parts#1591
mikemikimike wants to merge 1 commit into
i-am-bee:mainfrom
mikemikimike:codex/1589-easy-input-message

Conversation

@mikemikimike

Copy link
Copy Markdown

Closes: #1589

Description

Accept OpenAI Responses API EasyInputMessage content arrays containing input_text parts. The request model now validates these parts, and the conversion path preserves their order as BeeAI text content for user, system, developer, and assistant messages. Existing string and None content behavior is unchanged.

Validation

  • python -m pytest tests/adapters/openai/test_responses_utils.py -m unit -q -o addopts= — 7 passed
  • python -m ruff check --quiet — passed
  • python -m ruff format --quiet --check — passed
  • python -m pyrefly check beeai_framework/adapters/openai/serve/responses/_types.py beeai_framework/adapters/openai/serve/responses/_utils.py tests/adapters/openai/test_responses_utils.py — 0 errors
  • python -m build — passed
  • Broader unit run excluding the Transformers-only module: 292 passed, 6 skipped; 4 unrelated Windows platform failures remain because the tests invoke Unix commands/paths.

Checklist

  • Python contributor guide reviewed
  • Commit is signed off with DCO
  • Conventional commit title and message
  • Regression test included
  • No external API or model call required

Signed-off-by: mikemikimike <13286568797@163.com>
@mikemikimike
mikemikimike requested a review from a team as a code owner August 12, 2026 04:23
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 12, 2026
@github-actions github-actions Bot added the python Python related functionality label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python related functionality size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAIServer does not support EasyInputMessage format

1 participant