mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-18 05:47:38 +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
|
// block right after a text block is content-block index 1, but it is
|
||||||
// still the first — index 0 — tool call).
|
// still the first — index 0 — tool call).
|
||||||
toolOrdinals map[int]int
|
toolOrdinals map[int]int
|
||||||
content contentChunker
|
|
||||||
id string
|
id string
|
||||||
model string
|
model string
|
||||||
|
content contentChunker
|
||||||
u usage
|
u usage
|
||||||
created int64
|
created int64
|
||||||
nextToolOrdinal int
|
nextToolOrdinal int
|
||||||
|
|||||||
+1
-1
@@ -655,13 +655,13 @@ func (m *geminiUsageMetadata) safeCompletion() int64 {
|
|||||||
type geminiStreamState struct {
|
type geminiStreamState struct {
|
||||||
id string
|
id string
|
||||||
model string
|
model string
|
||||||
|
content contentChunker
|
||||||
u usage
|
u usage
|
||||||
created int64
|
created int64
|
||||||
// nextToolOrdinal is the per-stream contiguous tool-call counter lesson
|
// nextToolOrdinal is the per-stream contiguous tool-call counter lesson
|
||||||
// (a) requires.
|
// (a) requires.
|
||||||
nextToolOrdinal int
|
nextToolOrdinal int
|
||||||
startedRole bool
|
startedRole bool
|
||||||
content contentChunker
|
|
||||||
// sawFunctionCall latches true the first time any chunk in this stream
|
// sawFunctionCall latches true the first time any chunk in this stream
|
||||||
// carries a functionCall part, and stays true for the rest of the
|
// carries a functionCall part, and stays true for the rest of the
|
||||||
// stream. Gemini's finishReason is "STOP" whether the turn ended in
|
// stream. Gemini's finishReason is "STOP" whether the turn ended in
|
||||||
|
|||||||
Reference in New Issue
Block a user