TMS AI (TTMSMCPCloudAI) RAG

Hi,

I am trying to use TMS AI (TTMSMCPCloudAI component ) using Gemini with RAG. I just downloaded the RAG demo from @Code4Delphi. When a ask to Gemimi a get this response:

HTTP error code: 404

{
"error": {
"code": 404,
"message": "models/gemini-1.5-flash-latest is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}

What's wrong?

Could you help me?

Do you have a sample to use RAG using TMS AI components?

Thank you!

Kind regards,

Diego

The default model we had configured was deprecated by Google.
Please change the model to a newer model via
TTMSMCPCloudAI.Settings.GeminiModel

Change this for example to one of the listed models at:

for example
gemini-3-pro-preview
or
gemini-2.5-flash