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.1.tar.gz (7.3 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_gemini_youtube-0.0.1.tar.gz
  • Upload date:
  • Size: 7.3 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.1.tar.gz
Algorithm Hash digest
SHA256 abfb3029f6e4ef11dbaf3781ca555ab9f4b3f4fb92780b8880c01da5dac91b30
MD5 3c94aaef8173b86dcac9c549e5e50490
BLAKE2b-256 71bc023d1032552b3735e1f7f2cddef52b4a75fd165970ec4def94db692226cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for llm_gemini_youtube-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f478782f8bdad41dc9df361a89f1e4a323b0faaf20f2858b0086be91a07bd49
MD5 c36e5d3ad6224bcf676031b194993785
BLAKE2b-256 87b0427e1bc512c9587ba983ae5c3c6a926b70a8521581538319fb64e650816f

See more details on using hashes here.

Provenance

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