Action
Gemini: List Models
Posted by agiletortoise,
Last update
3 days ago
List available model names in your Google API account.
Steps
-
script
// get models response from Google let ai = GoogleAI.create() let response = ai.getModels() // if loaded successfully, list the model names if (response, response.success) { let names = response.responseData["models"].map(m => m["name"]) alert(names.join("\n")) } else { alert("Failed to load models") context.fail() }
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.