From ef53e9bebe7f064aa3fa4955bb31b98f814a593c Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 23 Feb 2026 09:35:40 +0300 Subject: [PATCH] Enha: json tag for stats --- models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }