AIG. - AI Google Gemini Integration

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

AIG. - AI Google Gemini Integration

AIG.GetModel

Previous Top Next


MiniRobotLanguage (MRL)

 

AIG.Get Model
Retrieve Current AI Model for Google Generative AI API

 

Intention

 

GetModel Command: Checking the Current AI Model
 
The GetModel command retrieves the currently set AI model used by the Google Generative AI API.

This helps you verify or utilize the model in your scripts.

It’s part of the Model Configuration suite within AIG.

 

What is the GetModel Command?

 

The GetModel command fetches the current value of the AIG_Model global variable, which defines the AI model for API interactions.

You can store this value in a variable or, if no variable is specified, it will be placed on the Top of Stack (TOS).

 

Why Do You Need It?

 

Retrieving the current model is useful for:

Verification: Confirm the model set by AIG.Set Model.

Script Logic: Adjust behavior based on the active model.

Debugging: Ensure the correct model is in use before API calls.

 

How to Use the GetModel Command?

 

Call this command to retrieve the current model, optionally storing it in a variable.

The default model is "gemini-pro" unless changed via AIG.Set Model.

 

Example Usage

 

AIG.Get Model|$$MOD

DBP.Current Model: $$MOD

AIG.Get Model

POP.$$MOD

DBP.Model from Stack: $$MOD

 

The returned value reflects the last model set or the default "gemini-pro".

 

Illustration

 

┌───────────────┐

│ Model         │

├───────────────┤

│ gemini-1.5-pro│

└───────────────┘

Example output from AIG.Get Model after setting "gemini-1.5-pro".

 

Syntax

 

AIG.GetModel[|P1]

AIG.Get Model[|P1]

 

Parameter Explanation

 

P1 - (Optional) The variable where the model name will be stored. If omitted, the value is placed on the Top of Stack (TOS).

 

Example

 

AIG.Set Model|gemini-pro-vision

AIG.Get Model|$$MOD

DBP.Current Model: $$MOD

ENR.

 

Remarks

 

- The default model is "gemini-pro" if not previously set.

- Use this command after AIG.Set Model to confirm the setting.

 

Limitations

 

- Only reflects the model set in the current session or defaults.

- Does not validate if the model is supported by the API.

 

See also:

 

AIG.Set Model

AIG.Ask

Model Configuration

Generation Parameters