when the go sdk will support System instructions setting in GenerativeModel of Client
when the go sdk will support System instructions setting in GenerativeModel of Client, now i am using 0.11.0
i am also facing an issue where api will throw a 400 error when calling SendMessage after i have set model.systemInstruction
Setting SystemInstruction should work now, you can see an example at https://pkg.go.dev/github.com/google/generative-ai-go/genai#example-GenerativeModel.GenerateContent-Config
Note that you need a Gemini 1.5 model for that, since 1.0 doesn't support system instructions. Set the model name to "gemini-1.5-pro-latest"
Since the example in go package, model := client.GenerativeModel("gemini-1.0-pro") , uses 1.0, I wasn't aware that the 1.0 doesn't support the system instructions. Also it is not mentioned in docs that system instruction is exclusive to 1.5. Is it possible to learn if 1.0 will ever get system instructions? If not example in go package is misleading.
#92 fixes the example to use an appropriate model.
Is it possible to learn if 1.0 will ever get system instructions?
Unfortunately, we don't know.