Skip to content

Commit

Permalink
fix mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust committed May 14, 2024
1 parent aff02ac commit a9b82a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickstarts/File_API.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a9b82a3

Please sign in to comment.