google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.63k stars 323 forks source link

Use double quotes for JSON object keys #612

Closed westonruter closed 3 weeks ago

westonruter commented 4 weeks ago

Description of the change

Use double-quoted string instead of single-quoted string in JSON.

Motivation

The string 'code_execution' is unexpectedly single-quoted in a JSON string when it should be double-quoted. Apparently this still works for the API (as does not quoting the object key at all) but the Bash syntax highligher is confused and thinks that the 'code_execution' text is not part of the string.

image

Type of change

Choose one: Documentation

Checklist