summaryrefslogtreecommitdiff
path: root/internal/logging
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-17 22:57:19 +0300
committerPaul Buetow <paul@buetow.org>2025-08-17 22:57:19 +0300
commit8dfbbbb6de0f0c67413ee157e976fc3eaee4f914 (patch)
tree8147798438d61a7ddb2769e005c05aece9b586fc /internal/logging
parentc83acd3f5749fe240464283a43f8b03797a1b544 (diff)
logging: move ChatLogger to value semantics; llm: switch clients to value receivers and return values from constructors
Diffstat (limited to 'internal/logging')
-rw-r--r--internal/logging/chatlogger.go6
1 files changed, 3 insertions, 3 deletions
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
}) {