summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-30 16:54:54 -0500
committerJeff Carr <[email protected]>2025-08-30 16:54:54 -0500
commit512ebf5be67f468eaeeb223911c6f6707cea3015 (patch)
treef2c14fd9a7d3cf736c538032af5eba7cebd7aab8 /main.go
parent6888512b3bb422e83d98edcf3e7b18b89f3f504f (diff)
attempt to marshal JSON file to protobuf
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 273a32f..39cf5cf 100644
--- a/main.go
+++ b/main.go
@@ -65,13 +65,14 @@ func main() {
_ = aiClient
if argv.JsonFile != "" {
- req, err := parseJSON(argv.JsonFile)
+ jstruct, err := parseJSON(argv.JsonFile)
if err != nil {
badExit(err)
}
- log.Info("parseJSON() ok. model =", req.Model)
+ log.Info("parseJSON() ok. model =", jstruct.Model)
- genaiContent, err := convertToGenai(req)
+ // Marshal this JSON file into a protobuf
+ genaiContent, err := convertToGenai(jstruct)
if err != nil {
badExit(err)
}