mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-12 04:54:45 +00:00
style(stream): reorder stream state fields for fieldalignment
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user