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/vision?lang=python#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.2.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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llm_gemini_youtube-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5b01fcd29776b9b1e5ef8095f0c22d8c1ba087a49002ba66cd28aca61a8b6d7e
MD5 b127f52445711b84a79fdbd41c1507f5
BLAKE2b-256 4c2c14e4e2ee24f05f48d7b16610c69929eb9372094b9876004e929a31bdcde8

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gemini_youtube-0.0.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_gemini_youtube-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60c38ba3919afa39a6c555f8ab4484289bbe952c75ceb01e4241114a225ac3c2
MD5 5dc569b3afa508be5a28224a9dbf0f15
BLAKE2b-256 260c14699a13d66f9aeb2afc75e1d3fe7050565e32fb564e21d25c72410bccc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_gemini_youtube-0.0.2-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