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