Im trying to build a transcription bot, by replacing chatgpt wispher with Google Gemini Vertex. Im facing issue with the sharable link.
here is the blueprint:
blueprint.json (48.8 KB)
Output bundle for Google drive, Get sharable link element:
[
{
"fileId": "1hMP4g_9tCvy_FZRMDsCRTGqkCyCv5T9F",
"kind": "drive#permission",
"id": "anyoneWithLink",
"type": "anyone",
"role": "reader",
"allowFileDiscovery": false,
"shareLink": "https://drive.google.com/file/d/1hMP4g_9tCvy_FZRMDsCRTGqkCyCv5T9F",
"webContentLink": "https://drive.google.com/uc?id=1hMP4g_9tCvy_FZRMDsCRTGqkCyCv5T9F&export=download"
}
]
Input bundle for Google Gemini Vertex:
[
{
"topK": 32,
"topP": 1,
"model": "gemini-pro-vision",
"messages": [
{
"role": "user",
"prompt": "transcribe the video",
"fileUri": "https://drive.google.com/file/d/1hMP4g_9tCvy_FZRMDsCRTGqkCyCv5T9F",
"mimeType": "video/mp4",
"videoMetadata": {
"endOffset": {},
"startOffset": {}
},
"fileUploadType": "fileUri"
}
],
"projectId": "make-vertex-436917",
"temperature": 0.4,
"serviceEndpointLocationId": "us-central1"
}
]