Hey, everybody!
I’m trying to create a system that handles meeting records. It is often the case that one meeting is multiple audio files and all of them are larger than 20MB. So I am using genai.upload_file
rather than audio.
How do I pass the multiple file model in one request to process all the recordings one meeting at a time? I tried to do a list, pass only the URI, but the model doesn’t accept that.
It would help to see what the code you’re trying to do is, and how it isn’t working, so we can make sure we clarify the best way that fits into what you’re doing.
But in general, you will need to do this in several steps:
- Upload each audio file and keep track of the URI returned
- In the prompt you send to Gemini, you will need both
text
parts, containing the text parts of the instructions you’re giving as well asfile_data
parts, each of which contains one URI that was returned during the upload stage
Continuing the discussion from Work with multiple files:[poll type=number results=on_close min=7 max=20 step=1 public=true groups=admins,trust_level_4,EAP close=2024-09-28T21:00:00.000Z]
[/poll]