Hi, I am offering a fresh FILEAPI file to config-systemIsntructions Parts[ ] object..
as i did all the week long and it workd. but now it falls with 500 error every time i add a fileapi-typed part.
{“error”:{“code”:500,“message”:“Internal error encountered.”,“status”:“INTERNAL”}}
[19:42:26] Status: 500
const res = await ai.models.generateContent({
model: ‘gemini-3-flash-preview’,
contents: prompt,
config: {
systemInstruction: {
parts: [
{ text: ’ do begin youo answer with a current Timestamp’},
{ text:’ let your name be John. use it every time for i am testing systemInstructions interface of type Parts[ ] '},
{ fileData:{ fileUri: myValidWorkingFresh_FILEAPI_Uri, mimeType: ‘text/plain’ } }, // fails and works here - every time - when i do comment/uncomment it =( worked previously good, or AssistentAI had broken working version and exchanged it with smth i misseen.
]
}
}
});