Can't use google gemini as provider
# support
c
hello. I'm having trouble using gemini as provider, i'm getting this error:
An error occurred in this call: pipeline-error-google-llm-failed
also in the logs:
Model request failed (attempt #2, reason: ([GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:streamGenerateContent?alt=sse: [400 Bad Request] Invalid value at 'contents[7].parts[0]' (text), Starting an object on a scalar field [{"@type":"type.googleapi...))
v
@ChaloVega I'm sorry to hear that you're experiencing issues with using Gemini as your provider. The error message you're seeing indicates that there was a problem with the request sent to Google's Generative AI service. It seems like there might be an issue with the structure of the data being sent, particularly with the contents array at index 7. To resolve this, please ensure that the data you're sending in your API request is correctly formatted according to the specifications required by the Gemini model. Double-check the structure of your request payload, especially around the part mentioned in the error message. If you've verified that your request is correctly formatted and you're still facing this issue, it may be a problem on the provider's end or with the integration. In that case, please reach out to the support team for further assistance. Would you like me to assist you with anything else at this moment?
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
c
here's the call id: 4e083a55-3c84-4458-8971-f0d1b23a68a6
3 Views