Keep app.main.v1_responses as the compatibility entrypoint while moving the Responses wrapper and SSE bridge into a dedicated module. This reduces app/main.py without changing the existing Responses behavior or test patch points. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
787 B
787 B
Handoff: team-exec → team-verify
- Decided: Extracted the OpenAI Responses wrapper from
app/main.pyintoapp/http/openai_responses.pywhile keepingapp.main.v1_responsesas the compatibility route entry and preserving delegation throughv1_chat_completions. - Rejected: No protocol behavior changes, no Responses contract expansion, and no docs drift cleanup in this phase to keep the slice compatibility-first.
- Risks:
app/main.pystill intentionally re-exports some Responses helpers via imports; leave that alone unless a later compatibility pass proves it is safe to remove. - Files:
app/main.py,app/http/openai_responses.py - Remaining: Independent verifier review, then mark task #32 completed and prepare the phase checkpoint commit/push.