Open GorvGoyl opened 3 months ago
I think since the Gemini API returned this error, it means that's how it is
But if I revert ai-sdk/google to the previous version (0.0.26), the error doesn't appear.
i am facing the same error , and same If i revert ai-sdk/google to the previous version (0.0.26), the error doesn't appear.
Description
I recently updated my packages and started receiving an error for the Gemini Flash 1.5 AI model. I understand that the system message should come first, but is this a requirement for Google Gemini? I checked the Gemini documentation but couldn't find any information on the order of the system message.
PS: Keeping the system message at last improves the response quality for some models.
Code example
No response
Additional context