Skip to content

Commit

Permalink
mp3 and mp4 support for prompt-gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Oct 28, 2024
1 parent 634a405 commit 06a0bb2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions llms/prompt-gemini.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Running prompts against images and PDFs with Google Gemini
# Running prompts against images, PDFs, audio and video with Google Gemini

I'm still working towards adding multi-modal support to my [LLM](https://llm.datasette.io/) tool. In the meantime, here are notes on running prompts against images and PDFs from the command-line using the [Google Gemini](https://ai.google.dev/gemini-api) family of models.
I'm still working towards adding multi-modal support to my [LLM](https://llm.datasette.io/) tool. In the meantime, here are notes on running prompts against images and PDFs and audio and video files from the command-line using the [Google Gemini](https://ai.google.dev/gemini-api) family of models.

## Using curl

Expand Down Expand Up @@ -248,6 +248,12 @@ if [ -n "$image_file" ]; then
pdf)
mime_type="application/pdf"
;;
mp3)
mime_type="audio/mp3"
;;
mp4)
mime_type="video/mp4"
;;
*)
echo "Error: Unsupported file type .$ext" >&2
exit 1
Expand Down

0 comments on commit 06a0bb2

Please sign in to comment.