1. Învăţa
  2. /
  3. Courses
  4. /
  5. Introduction to Claude Models

Connected

exercise

Experimenting with top_p

Same launch, new products! Luna Gear needs three names for upcoming add-ons: a built-in phone-charger lid, an insulated water-bottle holder, and a clip-on side pocket. They want one focused list that sounds established and one quirky list that stands out.

The anthropic library, client and addons_list string are preloaded.

Instrucţiuni

100 XP
  • Set a low top_p value for focused, conventional vocabulary (0.1-0.3).
  • Set a high top_p value for diverse, creative vocabulary (0.7-0.9).
  • Print both response contents to display the generated names.