From a9b82a398fa83f2cad2c0c29b68863543085cb69 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Tue, 14 May 2024 09:15:57 -0700 Subject: [PATCH] fix mime type --- quickstarts/File_API.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstarts/File_API.ipynb b/quickstarts/File_API.ipynb index 3ed41be61..972e5d0e0 100644 --- a/quickstarts/File_API.ipynb +++ b/quickstarts/File_API.ipynb @@ -387,7 +387,7 @@ "\n", "!curl -so contrib.md https://raw.githubusercontent.com/google-gemini/cookbook/main/CONTRIBUTING.md\n", "\n", - "md_file = genai.upload_file(path=\"contrib.md\", display_name=\"Contributors guide\")\n", + "md_file = genai.upload_file(path=\"contrib.md\", display_name=\"Contributors guide\", mime_type=\"text/markdown\")\n", "\n", "model = genai.GenerativeModel(model_name=\"models/gemini-1.5-pro-latest\")\n", "response = model.generate_content(\n",