Gemini not parsing input correctly
D
Dean
The API is trying to parse the message in a Gemini/Bard format but receiving it in a different format.
Error conversing with friend: "Unable to determine the intended type of the
dict
. For Content
, a 'parts' key is expected. For Part
, either an 'inline_data' or a 'text' key is expected. For Blob
, both 'mime_type' and 'data' keys are expected. However, the provided dictionary has the following keys: ['role', 'content']"Miller
I’ve just fixed most cases of this - Gemini AI agents you make will always attempt to return parable data to your Servera instance!