AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI >

AIG. - AI Google Gemini Integration

2. Configuration (Connection & Endpoint)

Previous Top Next


MiniRobotLanguage (MRL)

 

2. Configuration (Connection & Endpoint)
Managing API Versions and Server URLs

 

Overview

 

This section controls *where* the robot sends its requests. While most users will stay on the default "Stable" (v1) endpoint, advanced features like "Thinking" (Reasoning) or Image Generation often require switching to the "Preview" (v1beta) endpoint.

 

Visualizing the Connection

 

 [Robot] ───> [Base URL] ───> [Version] ───> [Model] : [Action]

 │ │

 ▼ ▼

 googleapis.com/.. v1 (Stable) / v1beta (Preview)

 

Detailed Command List

 

AIG.SetApiVersion - The most important command here. Use "v1beta" to unlock newest features (Gemini 3.0, Imagen), or "v1" for production stability.

AIG.SetBaseUrl / Get - Allows redirecting requests to a custom proxy or enterprise endpoint instead of the public Google Cloud URL.

AIG.SetEndpointAction / Get - Controls the specific API verb. Defaults to ":generateContent" (Chat). Changing this is rarely needed unless using specialized embeddings or legacy predict methods.

AIG.GetEndpoint - Returns the fully constructed URL string that will be used for the next network call (useful for debugging).