LLM plugin for accessing Google's Gemini models
Top 78.2% on sourcepulse
This plugin provides access to Google's Gemini family of large language models through the llm
CLI tool. It enables users to interact with various Gemini models, leverage their multi-modal capabilities, and utilize features like code execution and Google Search grounding.
How It Works
The plugin integrates with the llm
command-line interface, allowing users to specify Gemini models via the -m
flag. It handles API key management and configuration, supporting both direct key setting and environment variables. The plugin facilitates multi-modal inputs (images, audio, video) by accepting file paths or URLs as arguments. Advanced features like JSON output formatting, code execution, and Google Search grounding are enabled through specific command-line options.
Quick Start & Requirements
llm install llm-gemini
.llm keys set gemini <key>
or the LLM_GEMINI_KEY
environment variable.gemini-2.0-flash
, gemini-2.5-flash-preview-04-17
, and embedding models.Highlighted Details
Maintenance & Community
Licensing & Compatibility
llm
CLI tool.Limitations & Caveats
1 week ago
1 week