GenkitG
Genkitโ€ข2y agoโ€ข
5 replies
inadequate-blush

is this with generatecontent or

is this with generatecontent or generatecontentstream backend?

when I test with generatecontentstream with system message set it just works.
at the end of the day, all of these sdk piggy back on rest api of v1, v1beta, v1alpha. which all of the languages python, nodejs, and go rely on. am I wrong in assuming that?

Just for completeness
model := client.GenerativeModel("gemini-1.5-pro")
        model.SystemInstruction = &genai.Content{
            Parts: []genai.Part{genai.Text("You speak French only.")},
        }
        iter := model.GenerateContentStream(
            r.Context(),
            genai.Text("Tell me a story about a lumberjack and his giant ox. Keep it very short."))

personally. i'm trying hard to develop with genkit go, rather than resort to go sdk.
@Iman Rahmati
Was this page helpful?