summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-23 09:35:40 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-23 09:35:40 +0300
commitef53e9bebe7f064aa3fa4955bb31b98f814a593c (patch)
treea33f12af6debed181585c82008449944a000b409 /models
parenta546bfe5960b272bd3c8782532cfa70f805bebf1 (diff)
Enha: json tag for stats
Diffstat (limited to 'models')
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 1e65b25..4e33ba5 100644
--- a/models/models.go
+++ b/models/models.go
@@ -110,7 +110,7 @@ type RoleMsg struct {
ContentParts []any `json:"-"`
ToolCallID string `json:"tool_call_id,omitempty"` // For tool response messages
KnownTo []string `json:"known_to,omitempty"`
- Stats *ResponseStats `json:"-"` // Display-only, not persisted
+ Stats *ResponseStats `json:"stats"`
hasContentParts bool // Flag to indicate which content type to marshal
}