Skip to content

Commit 67c8fd3

Browse files
authored
Use candidates[0] in makersuite template. (google#136)
* Use candidates[0] * Update makersuite_chat_prompt.ipynb
1 parent e0e05d3 commit 67c8fd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/makersuite_chat_prompt.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
" examples=examples,\n",
113113
" messages=messages\n",
114114
")\n",
115-
"print(response.last)"
115+
"print(response.candidates[0]['content'])"
116116
]
117117
}
118118
],

templates/makersuite_text_prompt.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
" **defaults,\n",
114114
" prompt=text\n",
115115
")\n",
116-
"print(response.result)"
116+
"print(response.candidates[0]['output'])"
117117
]
118118
}
119119
],

0 commit comments

Comments
 (0)