From 8dfbbbb6de0f0c67413ee157e976fc3eaee4f914 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 17 Aug 2025 22:57:19 +0300 Subject: logging: move ChatLogger to value semantics; llm: switch clients to value receivers and return values from constructors --- internal/logging/chatlogger.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/logging') diff --git a/internal/logging/chatlogger.go b/internal/logging/chatlogger.go index b6b84a3..2f2fc99 100644 --- a/internal/logging/chatlogger.go +++ b/internal/logging/chatlogger.go @@ -6,12 +6,12 @@ type ChatLogger struct { } // NewChatLogger creates a new ChatLogger for a given provider. -func NewChatLogger(provider string) *ChatLogger { - return &ChatLogger{Provider: provider} +func NewChatLogger(provider string) ChatLogger { + return ChatLogger{Provider: provider} } // LogStart logs the beginning of a chat or stream interaction. -func (cl *ChatLogger) LogStart(stream bool, model string, temp float64, maxTokens int, stop []string, messages []struct { +func (cl ChatLogger) LogStart(stream bool, model string, temp float64, maxTokens int, stop []string, messages []struct { Role string Content string }) { -- cgit v1.2.3