Jump to content
GabrielMoraru

Connecting Delphi 12 IDE to Google Gemini AI

Recommended Posts

Posted (edited)

Hi

I can connect to the AI via a curl script, but I cannot from the IDE.
When I click the "model" edit box I get:

Quote

Cannot load the latest available models, please check the Api key and the Base url.
Error: 404 - Not Found

 

 

Delphi fails to connect to AI.png

Edited by GabrielMoraru

Share this post


Link to post
Posted (edited)

I haven't tried to connect the IDE to Gemini AI but for normal applications try using FB4D

Edited by salvadordf

Share this post


Link to post
6 minutes ago, salvadordf said:

I haven't tried to connect the IDE to Gemini AI but for normal applications try using FB4D

I don't know how this will help me. I want to ask the AI questions, directly from the IDE. I have never used this kind of plugin and I want to try it now.
So, I use Delphi's embedded support for this (in IDE -> Options -> Smart code design).

Share this post


Link to post

May you use the wrong BaseURL i think

Share this post


Link to post
2 hours ago, gkobler said:

May you use the wrong BaseURL i think

Yes. That was the problem. I already posted the solution (correct base URL) here.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×