Invalid argument provided to Gemini: 400 Developer instruction is not enabled for models/gemini-pro

Why do I get this message "Invalid argument provided
to Gemini: 400 Developer instruction is not enabled for models/gemini-pro?

Hi @Denis_Vasiliev, Welcome to the forum !

Are you getting this error in AI Studio or Gemini API SDK? If you not getting it in AI Studio, please provide your sample code to reproduce the issue.

Dear @Govind_Keshari,

Thank you for your reply! I sorted out the issue by switching to gemini-1.5-pro.

Best regards,

Denis

1 Like