Repository navigation
fix(rest): use valid JSON payloads and quote URLs in Audio, Video, and Models REST - #1638
sumit-2007-git wants to merge 1 commit into
Conversation
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request improves the robustness of REST API quickstart notebooks by ensuring that shell commands are properly formatted. By correcting JSON syntax and quoting URLs, the changes prevent potential execution errors caused by invalid JSON structures or shell-specific character interpretation. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the REST quickstart notebooks (Audio_REST.ipynb, Models_REST.ipynb, and Video_REST.ipynb) to fix shell escaping and quoting in curl commands. Specifically, it correctly escapes double quotes in JSON payloads and wraps URLs containing query parameters in double quotes to prevent shell interpretation issues. I have no additional feedback to provide as these changes are correct and improve the robustness of the shell commands.
Summary
quickstarts/rest/Audio_REST.ipynbandquickstarts/rest/Video_REST.ipynb, replaces single-quoted JSON key strings ({'file': {'display_name': ...}}) with valid double-quoted JSON syntax ({"file": {"display_name": ...}}) incurlfile upload metadata requests.quickstarts/rest/Models_REST.ipynb, wraps query parameter URLs in double quotes to prevent shell parameter splitting and globbing issues.