Skip to content

Commit

Permalink
fix: fix the RESPONSE_MIME_TYPE variable issue in the notebook (Googl…
Browse files Browse the repository at this point in the history
…eCloudPlatform#1465)

# Description
The current `RESPONSE_MIME_TYPE` setup doesn't allow it to display
itself properly in the Notebook, resulting in the following error "Could
not parse variable and value from ""application/json"". Expected the
line to start with a variable assignment.". Fix this issue.

Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make
sure it goes smoothly:

- [x] Follow the [`CONTRIBUTING`
Guide](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/CONTRIBUTING.md).
- [x] You are listed as the author in your notebook or README file.
- [x] Your account is listed in
[`CODEOWNERS`](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/.github/CODEOWNERS)
for the file(s).
- [x] Make your Pull Request title in the
<https://www.conventionalcommits.org/> specification.
- [x] Ensure the tests and linter pass (Run `nox -s format` from the
repository root to format).
- [x] Appropriate docs were updated (if necessary)
  • Loading branch information
want-to-be-relaxed authored Nov 26, 2024
1 parent 9146dc8 commit 7918e9a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@
"\n",
"# @markdown **Misc Configs**: <br/>\n",
"PLACEHOLDER_TO_VALUE = \"{}\" # @param\n",
"RESPONSE_MIME_TYPE = (\n",
" \"application/json\" # @param [\"text/plain\", \"application/json\", \"text/x.enum\"]\n",
")\n",
"RESPONSE_MIME_TYPE = \"text/plain\" # @param [\"text/plain\", \"application/json\", \"text/x.enum\"]\n",
"RESPONSE_SCHEMA = \"\"\n",
"TARGET_LANGUAGE = \"English\" # @param [\"English\", \"French\", \"German\", \"Hebrew\", \"Hindi\", \"Japanese\", \"Korean\", \"Portuguese\", \"Simplified Chinese\", \"Spanish\", \"Traditional Chinese\"]\n",
"TOOLS = \"\" # @param\n",
Expand Down

0 comments on commit 7918e9a

Please sign in to comment.