From e12cec8bf9244482d238845e592f87b4a28698cf Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Tue, 29 Sep 2026 12:31:07 +0100 Subject: [PATCH] style(stream): reorder stream state fields for fieldalignment --- translate_anthropic.go | 2 +- translate_gemini.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translate_anthropic.go b/translate_anthropic.go index 672ca73..c1be72a 100644 --- a/translate_anthropic.go +++ b/translate_anthropic.go @@ -695,9 +695,9 @@ type anthropicStreamState struct { // block right after a text block is content-block index 1, but it is // still the first — index 0 — tool call). toolOrdinals map[int]int - content contentChunker id string model string + content contentChunker u usage created int64 nextToolOrdinal int diff --git a/translate_gemini.go b/translate_gemini.go index 4bbe95e..dedb038 100644 --- a/translate_gemini.go +++ b/translate_gemini.go @@ -655,13 +655,13 @@ func (m *geminiUsageMetadata) safeCompletion() int64 { type geminiStreamState struct { id string model string + content contentChunker u usage created int64 // nextToolOrdinal is the per-stream contiguous tool-call counter lesson // (a) requires. nextToolOrdinal int startedRole bool - content contentChunker // sawFunctionCall latches true the first time any chunk in this stream // carries a functionCall part, and stays true for the rest of the // stream. Gemini's finishReason is "STOP" whether the turn ended in