isolate this function

This commit is contained in:
Jeff Carr 2025-09-01 01:41:03 -05:00
parent c110250dc2
commit c63a746d0b
1 changed files with 0 additions and 17 deletions

View File

@ -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
}