|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 2. Configuration (Connection & Endpoint) > AIG. - AI Google Gemini Integration |
MiniRobotLanguage (MRL)
AIG.GetEndpoint
Retrieve Full API Connection URL
Intention
Retrieves the complete, constructed URL that the robot will use for its next API request. This URL is a combination of the Base Endpoint, the selected AI Model, and the Action (e.g., generateContent).
The command assembles the three main configuration parts into the final destination string:
[Base URL] + "/" + [Model Name] + [Action]
For example, if you are using the Gemini 1.5 Flash model on the beta endpoint for chat, the result would look like:
https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent
This is primarily a debugging tool. Use it to:
�Verify that you are targeting the correct model version.
�Ensure you haven't accidentally left the system on the wrong endpoint (e.g., trying to use Imagen on the stable endpoint).
�Check for malformed model names (e.g., spaces or typos).
Simply call the command with a variable to store the string.
// 1. Configure the environment
AIG.SetApiVersion|v1beta
AIG.SetModel|gemini-1.5-pro
// 2. Check the result
AIG.GetEndpoint|$$URL
// 3. Print it out
DBP.Targeting: $$URL
Syntax
AIG.GetEndpoint[|P1]
AIG.gep[|P1]
Parameter Explanation
P1 - (Optional) The name of the variable (e.g., `$$MyVar`) where the full URL string should be stored. If omitted, the result is placed on the Top-Of-Stack (TOS).
See also: