looking good. adds the json file okay
This commit is contained in:
parent
6ce2991074
commit
535cb98744
20
main.go
20
main.go
|
@ -8,6 +8,9 @@ package main
|
|||
import (
|
||||
"embed"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"go.wit.com/dev/alexflint/arg"
|
||||
|
@ -71,23 +74,26 @@ func main() {
|
|||
badExit(err)
|
||||
}
|
||||
log.Info("GeminiContent pb.Marshal() worked pb.Contents len =", len(pb.Contents))
|
||||
okExit("")
|
||||
}
|
||||
/*
|
||||
_, filename := filepath.Split(argv.JsonFile)
|
||||
parts := strings.Split(filename, ".")
|
||||
|
||||
if len(parts) == 5 {
|
||||
uuid := parts[1]
|
||||
num, _ := strconv.Atoi(parts[3])
|
||||
log.Info(uuid, parts)
|
||||
// newEntry := new(chatpb.ChatEntry)
|
||||
// newEntry.GeminiRequest = pb
|
||||
if chat := me.chats.FindByUuid(uuid); chat != nil {
|
||||
log.Info("FOUND CHAT", uuid)
|
||||
log.Info("FOUND CHAT", uuid, num)
|
||||
newEntry := new(chatpb.ChatEntry)
|
||||
newEntry.GeminiRequest = pb
|
||||
newEntry.ContentFile = filename
|
||||
newEntry.RequestCounter = int32(num)
|
||||
chat.AppendEntry(newEntry)
|
||||
me.chats.ConfigSave()
|
||||
}
|
||||
} else {
|
||||
}
|
||||
*/
|
||||
okExit("")
|
||||
}
|
||||
|
||||
if argv.Interact != nil {
|
||||
log.Info("testing AI client with simpleHello()")
|
||||
|
|
Loading…
Reference in New Issue