From 4a800a7cfd6e8d59b021ff1b5a0ea9d42b89b7b3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Sep 2025 00:29:48 -0500 Subject: attempts to submit data to the Gemini API --- json.go | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'json.go') diff --git a/json.go b/json.go index e55521d..818bbf9 100644 --- a/json.go +++ b/json.go @@ -6,7 +6,6 @@ import ( "go.wit.com/lib/protobuf/chatpb" "go.wit.com/log" - "google.golang.org/genai" ) // GeminiRequest matches the overall structure of the gemini-cli JSON output. @@ -124,25 +123,3 @@ func dumpFullJSON(req *GeminiRequest) { } } } - -// convertToGenai transforms the parsed JSON request into the genai.Content format. -func convertToGenai(req *GeminiRequest) ([]*genai.Content, error) { - var contents []*genai.Content - for _, c := range req.Contents { - genaiParts := []*genai.Part{} // Create a slice of the interface type - for _, p := range c.Parts { - if p.Text != "" { - // genai.Text returns a Part interface, which is what we need - var tmp *genai.Part - tmp = new(genai.Part) - tmp.Text = p.Text - genaiParts = append(genaiParts, tmp) - } - } - contents = append(contents, &genai.Content{ - Role: c.Role, - Parts: genaiParts, - }) - } - return contents, nil -} -- cgit v1.2.3