https://linen.dev logo
gemini integration issue
# 🖥│support-forum
z
Gemini connection error I was trying to mkae a gemini connection with my agent. It seems like Gemini is no auth, but then in the response it says "No connection adapters were found for '/models/gemini-1.5-flash:generateContent'" The entire response: { "response": "I'm sorry, I wasn't able to generate the haiku. It seems there was an issue connecting to the model. Please try again.", "toolsUsed": [ "GEMINI_GENERATE_CONTENT" ], "toolResults": [ { "data": {}, "error": null, "response": "Error: No connection adapters were found for '/models/gemini-1.5-flash:generateContent'", "success": true, "tool": "GEMINI_GENERATE_CONTENT" } ], "threadId": "thread_1762992737415_t6fqs5g0", "requestId": "request_1762993083811_nr208uwa", "success": true, "metadata": { "toolsUsed": [ "GEMINI_COUNT_TOKENS", "GEMINI_DOWNLOAD_VIDEO", "GEMINI_EMBED_CONTENT", "GEMINI_GENERATE_CONTENT", "GEMINI_GENERATE_IMAGE", "GEMINI_GENERATE_VIDEOS", "GEMINI_GET_VIDEOS_OPERATION", "GEMINI_LIST_MODELS", "GEMINI_WAIT_FOR_VIDEO" ], "toolExecutions": 1, "timestamp": "2025-11-13T00:18:06.422Z", "threadId": "thread_1762992737415_t6fqs5g0", "buildId": "6915220037a9594cd316afce" } }\
u
Hey @zulfiii, it looks like you are using an older model(
gemini-1.5-flash
). Could you try a newer model like
gemini-2.5-flash
and lmk if it works for you?
z
thanks for your reply. So while testing, I tried both a text generation prompot and image generaetion promt. Got the above response for text generation response. But seems like it is already using 2.5 for image generation response becuase i get this when i asked it to generate an image: GEMINI_GENERATE_IMAGE - params required: ['prompt'] Error: No connection adapters were found for '/models/gemini-2.5-flash-image-preview:generateContent' secondly, does composio's gemini tool expose a model parameter for the llm?
u
Hey @zulfiii, the
GEMINI_GENERATE_IMAGE
seems to be working fine on our end. Model used:
gemini-2.5-flash-image-preview
. — Could you share your logId? https://cdn.discordapp.com/attachments/1438328798784520293/1438767947245162496/Screenshot_2025-11-14_at_11.19.35.png?ex=69181491&is=6916c311&hm=f62a986dcb682701ae202ceb9192bcd39c764c3712e00162f6f5c0e8a94599ad&
z
sure, here are the logs for generateimage and gemini_genereate_content: log_e1NN00-n8eFw log_8iuKoeHrmvy4
u
Hey @zulfiii, looking like you are using an older version of the
gemini
toolkit (
00000000_00
). Could you try explicitly mentioning the toolkit version to the latest:
20251023_00
. ref: https://docs.composio.dev/docs/toolkit-versioning
Hey @zulfiii, yes, I think there was a mention about this in our conversation. As the models are bound to change, we suggest you to use a newer model of Gemini like
gemini-2.5-flash
.
z
thank you, that worked!
out of curiosity, what happens if users use the toolkit version 0000000_00 for their apps (instead of the current stable versions)? could it be a reason for randomly failing tool calls? Most of the times they seem to work but ofc it seems like itd be better to use current versions
u
Hey @zulfiii, any older version like
0000000_00
could cause a tool call failures. We recommend using latest and stable version for each toolkit/tool you are using. You can refer our docs: https://docs.composio.dev/docs/toolkit-versioning Also, checkout our Changelog: https://docs.composio.dev/changelog/2025/9/16, https://docs.composio.dev/changelog#adds-version-checks-for-tool-execution-and-improved-execution-speed-in-ts-sdk — Let me know if this helps!
z
thank you, this has been super helpful overall!