minor
This commit is contained in:
parent
fbbed0475b
commit
96843095f5
25
main.go
25
main.go
|
@ -8,8 +8,6 @@ package main
|
|||
import (
|
||||
"embed"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"go.wit.com/dev/alexflint/arg"
|
||||
|
@ -67,29 +65,15 @@ func main() {
|
|||
_ = aiClient
|
||||
|
||||
if argv.JsonFile != "" {
|
||||
/*
|
||||
jstruct, err := parseJSON(argv.JsonFile)
|
||||
if err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
log.Info("parseJSON() ok. model =", jstruct.Model)
|
||||
|
||||
// Marshal this JSON file into a protobuf
|
||||
genaiContent, err := convertToGenai(jstruct)
|
||||
if err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
log.Info("Successfully converted JSON to genai.Content")
|
||||
// Here you would now use the 'genaiContent' to send to the API
|
||||
_ = genaiContent // Prevent unused variable error for now
|
||||
*/
|
||||
|
||||
// now try to Marshal() into a protobuf
|
||||
pb, err := parsePB(argv.JsonFile)
|
||||
if err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
log.Info("GeminiContent pb.Marshal() worked len =", len(pb.Contents))
|
||||
okExit("")
|
||||
}
|
||||
/*
|
||||
_, filename := filepath.Split(argv.JsonFile)
|
||||
parts := strings.Split(filename, ".")
|
||||
|
||||
|
@ -103,8 +87,7 @@ func main() {
|
|||
}
|
||||
} else {
|
||||
}
|
||||
okExit("")
|
||||
}
|
||||
*/
|
||||
|
||||
if argv.Interact != nil {
|
||||
log.Info("testing AI client with simpleHello()")
|
||||
|
|
Loading…
Reference in New Issue