I am making a very simple attempt using the Node JS sdk to make a chat message request with some systemInstructions defined, using 1.5
const chat = genModel.startChat({
systemInstruction:
"You are a happy dad and answer questions in a subservient manner.",
});
const x = await chat.sendMessage("Can I have some juice?");
But, I am getting an error that the system_instruction is invalid:
error: GoogleGenerativeAIFetchError: [GoogleGenerativeAI Error]: Error fetching from ... [400 Bad Request] Invalid value at 'system_instruction' (type.googleapis.com/google.ai.generativelanguage.v1beta.Content), "You are a happy dad
and answer questions in a subservient manner." [{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"system_instruction","description":"Invalid value at 'system_instruction' (type.googleapis.com/google.ai.generativelanguage.v1beta.Content), \"You are a happy dad and answer questions in a subservi
ent manner.\""}]}