Skip to content

sdk: split gemini and openai translator files by responsibility - #401

Merged
aaliboyev merged 1 commit into
mainfrom
refactor/translator-splits
Jul 30, 2026
Merged

sdk: split gemini and openai translator files by responsibility#401
aaliboyev merged 1 commit into
mainfrom
refactor/translator-splits

Conversation

@aaliboyev

Copy link
Copy Markdown
Member

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 *_canonical suffix keeps them distinct from the existing responses_*.go wire-type files.

Largest translation file is now 452 lines (was 2264 before the series). Stacked on #400.

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
aaliboyev changed the base branch from refactor/anthropic-translator-split to main July 30, 2026 00:34
@aaliboyev
aaliboyev merged commit 548701f into main Jul 30, 2026
1 check passed
@aaliboyev
aaliboyev deleted the refactor/translator-splits branch July 30, 2026 00:35
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.

1 participant