Update stop for stop_sequences that is the correct approach

#15
Files changed (1) hide show
  1. dummy_agent_library.ipynb +1 -1
dummy_agent_library.ipynb CHANGED
@@ -489,7 +489,7 @@
489
  "output = client.text_generation(\n",
490
  " prompt,\n",
491
  " max_new_tokens=200,\n",
492
- " stop=[\"Observation:\"] # Let's stop before any actual function is called\n",
493
  ")\n",
494
  "\n",
495
  "print(output)"
 
489
  "output = client.text_generation(\n",
490
  " prompt,\n",
491
  " max_new_tokens=200,\n",
492
+ " stop_sequences=[\"Observation:\"] # Let's stop before any actual function is called\n",
493
  ")\n",
494
  "\n",
495
  "print(output)"