feat: add dumpchat function
This commit is contained in:
parent
8c8fccc650
commit
710693b18a
|
@ -79,6 +79,7 @@ func listChats(chats *chatpb.Chats) {
|
||||||
if numChats > 0 {
|
if numChats > 0 {
|
||||||
lastChat := chats.GetChats()[numChats-1]
|
lastChat := chats.GetChats()[numChats-1]
|
||||||
log.Printf("The current Gemini API session is UUID: %s\n", lastChat.GetUuid())
|
log.Printf("The current Gemini API session is UUID: %s\n", lastChat.GetUuid())
|
||||||
|
dumpchat(lastChat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go.wit.com/lib/protobuf/chatpb"
|
||||||
|
"go.wit.com/log"
|
||||||
|
)
|
||||||
|
|
||||||
|
func dumpchat(chat *chatpb.Chat) {
|
||||||
|
for _, entry := range chat.GetEntries() {
|
||||||
|
log.Printf("Entry: %s\n", entry.GetUuid())
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue