diff options
| author | Jeff Carr <[email protected]> | 2025-09-01 01:41:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-01 01:41:03 -0500 |
| commit | c63a746d0baa7880c54a0069b03f1924c3be3f46 (patch) | |
| tree | 7ceb281f9d555e9e1f1256cc9b673a18d0ce6c7f /doConnect.go | |
| parent | c110250dc244ce4587974a86fda161a832882fb8 (diff) | |
isolate this function
Diffstat (limited to 'doConnect.go')
| -rw-r--r-- | doConnect.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/doConnect.go b/doConnect.go index 8eb2674..1c29f04 100644 --- a/doConnect.go +++ b/doConnect.go @@ -52,20 +52,3 @@ func simpleHello() error { } return nil } - -func submitChat(content []*genai.Content) error { - resp, err := me.client.Models.GenerateContent(me.ctx, "gemini-2.5-flash", content, nil) - if err != nil { - return log.Errorf("error sending message: %v", err) - } - - log.Info("Response from API:") - for _, cand := range resp.Candidates { - if cand.Content != nil { - for _, part := range cand.Content.Parts { - fmt.Println(part) - } - } - } - return nil -} |
