summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-02 18:36:59 -0500
committerJeff Carr <[email protected]>2025-09-02 18:36:59 -0500
commit785591ab4cb3026ff069271b6f322a2e6f13eec8 (patch)
treed26bff12942e854b0993a5327f53a7b313b85f75
parent61179d6aaef8ab5b6e5c941e61e7ce1e848bf49e (diff)
dumps out the gemini struct enough for now
-rw-r--r--windowBook.go2
-rw-r--r--windowChats.go1
2 files changed, 3 insertions, 0 deletions
diff --git a/windowBook.go b/windowBook.go
index b90e91a..32ca20f 100644
--- a/windowBook.go
+++ b/windowBook.go
@@ -76,6 +76,7 @@ func addBooksPB(win *gadgets.GenericWindow, pb *chatpb.Books) *chatpb.BooksTable
return book.GetCtime().AsTime()
})
t.AddTitle()
+ // t.AddVersion()
// make a button to show content in the *genai.GeminiRequest structures
genaiButton := t.AddButtonFunc("# of parts", func(book *chatpb.Book) string {
@@ -87,6 +88,7 @@ func addBooksPB(win *gadgets.GenericWindow, pb *chatpb.Books) *chatpb.BooksTable
})
genaiButton.Custom = func(book *chatpb.Book) {
log.Info("show *genai.GeminiRequsts for", book.GetUuid())
+ book.GeminiRequest.PrintGeminiTable()
}
// draw the tabel (send the gui protobuf to the GO plugin)
diff --git a/windowChats.go b/windowChats.go
index 14e09ac..67153a3 100644
--- a/windowChats.go
+++ b/windowChats.go
@@ -151,6 +151,7 @@ func makeBooksTable(chat *chatpb.Chat) *chatpb.Books {
newb.Ctime = entry.Ctime
newb.Uuid = entry.Uuid
newb.From = entry.From
+ newb.Title = entry.ContentFile
newb.GeminiRequest = entry.GeminiRequest
pb.Append(newb)
}