dumps out the gemini struct enough for now
This commit is contained in:
parent
61179d6aae
commit
785591ab4c
|
@ -76,6 +76,7 @@ func addBooksPB(win *gadgets.GenericWindow, pb *chatpb.Books) *chatpb.BooksTable
|
||||||
return book.GetCtime().AsTime()
|
return book.GetCtime().AsTime()
|
||||||
})
|
})
|
||||||
t.AddTitle()
|
t.AddTitle()
|
||||||
|
// t.AddVersion()
|
||||||
|
|
||||||
// make a button to show content in the *genai.GeminiRequest structures
|
// make a button to show content in the *genai.GeminiRequest structures
|
||||||
genaiButton := t.AddButtonFunc("# of parts", func(book *chatpb.Book) string {
|
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) {
|
genaiButton.Custom = func(book *chatpb.Book) {
|
||||||
log.Info("show *genai.GeminiRequsts for", book.GetUuid())
|
log.Info("show *genai.GeminiRequsts for", book.GetUuid())
|
||||||
|
book.GeminiRequest.PrintGeminiTable()
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw the tabel (send the gui protobuf to the GO plugin)
|
// draw the tabel (send the gui protobuf to the GO plugin)
|
||||||
|
|
|
@ -151,6 +151,7 @@ func makeBooksTable(chat *chatpb.Chat) *chatpb.Books {
|
||||||
newb.Ctime = entry.Ctime
|
newb.Ctime = entry.Ctime
|
||||||
newb.Uuid = entry.Uuid
|
newb.Uuid = entry.Uuid
|
||||||
newb.From = entry.From
|
newb.From = entry.From
|
||||||
|
newb.Title = entry.ContentFile
|
||||||
newb.GeminiRequest = entry.GeminiRequest
|
newb.GeminiRequest = entry.GeminiRequest
|
||||||
pb.Append(newb)
|
pb.Append(newb)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue