Skip to content

Commit e285bb4

Browse files
authored
remove max_tokens from example (google#425)
1 parent 6e796f0 commit e285bb4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

site/en/gemini-api/docs/get-started/python.ipynb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,6 @@
17611761
" # Only one candidate for now.\n",
17621762
" candidate_count=1,\n",
17631763
" stop_sequences=['x'],\n",
1764-
" max_output_tokens=20,\n",
17651764
" temperature=1.0)\n",
17661765
")"
17671766
]
@@ -1789,10 +1788,6 @@
17891788
],
17901789
"source": [
17911790
"text = response.text\n",
1792-
"\n",
1793-
"if response.candidates[0].finish_reason.name == \"MAX_TOKENS\":\n",
1794-
" text += '...'\n",
1795-
"\n",
17961791
"to_markdown(text)"
17971792
]
17981793
},

0 commit comments

Comments
 (0)