llm-gemini  by simonw

LLM plugin for accessing Google's Gemini models

Created 2 years ago
419 stars

Top 70.1% on SourcePulse

GitHubView on GitHub
Project Summary

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

  • Install via llm install llm-gemini.
  • Requires an API key for Google's Gemini models.
  • API key can be set via llm keys set gemini <key> or the LLM_GEMINI_KEY environment variable.
  • Supports various Gemini models, including gemini-2.0-flash, gemini-2.5-flash-preview-04-17, and embedding models.
  • Documentation: https://github.com/simonw/llm-gemini

Highlighted Details

  • Supports multi-modal inputs (images, audio, video).
  • Enables code execution within a secure sandbox.
  • Integrates Google Search grounding for up-to-date information.
  • Provides access to multiple Gemini models and embedding models.
  • Supports interactive chat sessions.

Maintenance & Community

Licensing & Compatibility

  • License: MIT License.
  • Compatible with the llm CLI tool.

Limitations & Caveats

  • Experimental Gemini models may have unstable behavior or change without notice.
  • Usage of certain features like Google Search grounding may have additional requirements or costs as per Google's documentation.
Health Check
Last Commit

2 weeks ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
5
Star History
11 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Vasek Mlejnsky Vasek Mlejnsky(Cofounder of E2B), and
2 more.

llm-answer-engine by developersdigest

0.2%
5k
LLM answer engine for Perplexity-style search
Created 1 year ago
Updated 6 months ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Assaf Elovic Assaf Elovic(Cofounder of Tavily), and
9 more.

Perplexica by ItzCrazyKns

0.5%
28k
AI-powered search engine alternative
Created 1 year ago
Updated 1 day ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Pietro Schirano Pietro Schirano(Founder of MagicPath), and
1 more.

SillyTavern by SillyTavern

1.2%
22k
LLM frontend for power users
Created 2 years ago
Updated 21 hours ago
Feedback? Help us improve.