๐Ÿ“ฆ ftnext / llm-gemini-youtube

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

โ˜… 1 stars โ‘‚ 0 forks ๐Ÿ‘ 1 watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/ftnext/llm-gemini-youtube.git
HTTPS git clone https://github.com/ftnext/llm-gemini-youtube.git
SSH git clone git@github.com:ftnext/llm-gemini-youtube.git
CLI gh repo clone ftnext/llm-gemini-youtube
ftnext ftnext [chore] Bump up 0.0.3 332cf72 3 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ LICENSE
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ README.md

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