diff --git a/main.go b/main.go index 61921d8..d84be0a 100644 --- a/main.go +++ b/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()")