From 17ad8a04175402b71bbb3f67c9d8e5ff248c5228 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sun, 30 Mar 2025 00:40:23 -0700 Subject: [PATCH] docs: cleanup docs --- docs/my-website/docs/providers/vertex.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/my-website/docs/providers/vertex.md b/docs/my-website/docs/providers/vertex.md index 2865a82ce12..ab13a511371 100644 --- a/docs/my-website/docs/providers/vertex.md +++ b/docs/my-website/docs/providers/vertex.md @@ -1793,6 +1793,12 @@ response = completion( "file_data": f"data:application/pdf;base64,{encoded_file}", # 👈 PDF } }, + { + "type": "audio_input", + "audio_input { + "audio_input": f"data:audio/mp3;base64,{encoded_file}", # 👈 AUDIO File ('file' message works as too) + } + }, ], } ], @@ -1871,9 +1877,15 @@ curl http://0.0.0.0:4000/v1/chat/completions \ "type": "file", "file": { "file_data": f"data:application/pdf;base64,{encoded_file}", # 👈 PDF + }, + }, + { + "type": "audio_input", + "audio_input { + "audio_input": f"data:audio/mp3;base64,{encoded_file}", # 👈 AUDIO File ('file' message works as too) } }, - ] + ] } ], "max_tokens": 300