webui: add model name to info popup k/v pairs
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s89edebe17dd6d6edk
diff --git a/loop/agent.go b/loop/agent.go
index d1ff360..4adf80f 100644
--- a/loop/agent.go
+++ b/loop/agent.go
@@ -164,6 +164,9 @@
// TokenContextWindow returns the TokenContextWindow size of the model the agent is using.
TokenContextWindow() int
+
+ // ModelName returns the name of the model the agent is using.
+ ModelName() string
}
type CodingAgentMessageType string
@@ -481,6 +484,11 @@
return a.config.Service.TokenContextWindow()
}
+// ModelName returns the name of the model the agent is using.
+func (a *Agent) ModelName() string {
+ return a.config.Model
+}
+
// GetConvo returns the conversation interface for debugging purposes.
func (a *Agent) GetConvo() ConvoInterface {
return a.convo
@@ -1090,6 +1098,8 @@
InDocker bool
OneShot bool
WorkingDir string
+ // Model is the name of the LLM model being used
+ Model string
// Outside information
OutsideHostname string
OutsideOS string