sdk: split gemini and openai translator files by responsibility - #401
Merged
Conversation
Same pattern as the anthropic split: request parse/serialize, response, and the two stream directions per wire shape (cc_* / responses_*_canonical for the shared openai package). Pure file moves, no behavior change.
aaliboyev
changed the base branch from
refactor/anthropic-translator-split
to
main
July 30, 2026 00:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continues #400's decomposition across the remaining translator files — pure moves, no behavior change, full suite unchanged:
gemini/translator_canonical.go(1346) →request_parse/request_serialize/response/stream_to_canonical/stream_from_canonical+ an 82-line residual (translator type, call-ID + thought-signature helpers).openai/translator_cc.go(1745) →cc_request_parse/cc_request_serialize/cc_response/cc_stream_to_canonical/cc_stream_from_canonical+ an 88-line residual (translator type, reasoning-field vocabulary shared by parse and stream).openai/translator_responses.go(1636) →responses_request_canonical/responses_items_canonical/responses_response_canonical/responses_stream_to_canonical/responses_stream_from_canonical+ a 98-line residual (translator type, ComposedStream). The*_canonicalsuffix keeps them distinct from the existingresponses_*.gowire-type files.Largest translation file is now 452 lines (was 2264 before the series). Stacked on #400.