llm-gemini  by simonw

LLM plugin for accessing Google's Gemini models

Created 1 year ago
383 stars

Top 74.6% 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

1 month ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
1
Star History
10 stars in the last 30 days

Explore Similar Projects

Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Taranjeet Singh Taranjeet Singh(Cofounder of Mem0), and
8 more.

Perplexica by ItzCrazyKns

5.7%
25k
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.1%
18k
LLM frontend for power users
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.