Skip to main content

LLM plugin to access Google's Gemini family of models, with support for YouTube URLs

Project description

llm-gemini-youtube

PyPI Changelog Tests License

LLM plugin to access Google's Gemini family of models, with support for YouTube URLs
https://ai.google.dev/gemini-api/docs/video-understanding#youtube

Installation

Install this plugin in the same environment as LLM.

llm install llm-gemini-youtube

Usage

llm -m gemini-2.0-flash-yt -a 'https://www.youtube.com/watch?v=9hE5-98ZeCg' 'Can you summarize this video?'

llm -m gemini-1.5-pro-yt -a 'https://www.youtube.com/watch?v=9hE5-98ZeCg' 'What are the examples given at 01:05 and 01:19 supposed to show us?'

llm -m gemini-1.5-pro-yt -a 'https://www.youtube.com/watch?v=9hE5-98ZeCg' 'Transcribe the audio from this video, giving timestamps for salient events in the video. Also provide visual descriptions.'

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-gemini-youtube
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

python -m pip install -e '.[test]'

To run the tests:

python -m pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_gemini_youtube-0.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_gemini_youtube-0.0.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file llm_gemini_youtube-0.0.3.tar.gz.

File metadata

  • Download URL: llm_gemini_youtube-0.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for llm_gemini_youtube-0.0.3.tar.gz
Algorithm Hash digest
SHA256 344716ced4a404cb577aa61a0b7ebb709fd6cf1bf75c09d9c84c8c702c2a1925
MD5 f7f2c11d78be07dc80cae178e6d146b7
BLAKE2b-256 9e2289b5b95fe3457d57438643cc6f20c86230e26a08cbc2ecb73abbe61575a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gemini_youtube-0.0.3.tar.gz:

Publisher: publish.yml on ftnext/llm-gemini-youtube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_gemini_youtube-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_gemini_youtube-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3bda2b080ea97ba9a027393169ea57020a6680665158ff9964156d37eea815e4
MD5 2cca4ca5bf3f918ef92e8a7336ead1e1
BLAKE2b-256 1355616ab0692c27902cc57bb28d3a0d9e3c7ecb0da9db94898fde72ad3edb46

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gemini_youtube-0.0.3-py3-none-any.whl:

Publisher: publish.yml on ftnext/llm-gemini-youtube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page