Skip to content

[Platform][OpenAI] Fold OpenAI GPT handling onto OpenResponses bridge#2223

Open
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:fold-openai-open-responses
Open

[Platform][OpenAI] Fold OpenAI GPT handling onto OpenResponses bridge#2223
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:fold-openai-open-responses

Conversation

@chr-hertel

Copy link
Copy Markdown
Member
Q A
Bug fix? no
New feature? no
Docs? no
Issues -
License MIT

Internal refactor: the OpenAI bridge's GPT ResultConverter, ModelClient, and TokenUsageExtractor were near-duplicates of the OpenResponses bridge (added later). They now extend the OpenResponses counterparts and override only the OpenAI-specific hooks (429 reset-time header parsing, x-ratelimit-remaining-tokens, region→URL routing, sk- key validation, cacheRetention strip, SSE framing). The shared base classes gained small protected extension points; region/key helpers moved into a RegionAwareTrait.

~330 net lines removed, no public-API or behavior change. Full platform test suite (691) passes.

@chr-hertel chr-hertel requested a review from OskarStark as a code owner June 22, 2026 21:55
@carsonbot carsonbot added Platform Issues & PRs about the AI Platform component Status: Needs Review labels Jun 22, 2026
@chr-hertel chr-hertel changed the title [Platform] Fold OpenAI GPT handling onto OpenResponses bridge [Platform][OpenAI] Fold OpenAI GPT handling onto OpenResponses bridge Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants