I am making a chatbot for my hotel booking website. model is working fine but as soon as it call function and i give function response to history array and recall the model, it crashes with the below error.
GoogleGenerativeAIFetchError: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [400 Bad Request] * GenerateContentRequest.contents[7].parts[0].data: required oneof field ‘data’ must have one initialized field
i am providing my repo: GitHub - meetbikhani/Gemini-Bot
Kindly help