1. Learn
  2. /
  3. 课程
  4. /
  5. Working with DeepSeek in Python

Connected

道练习

Generating a product description

Imagine you're writing marketing copy for SonicPro headphones. Your goal is to generate a persuasive product description using DeepSeek.

Test how different prompting techniques, response lengths, and temperature settings influence the output. Since temperature only takes effect when reasoning is disabled, you'll disable reasoning via extra_body for this exercise.

说明

100 XP
  • Create a detailed prompt to generate a product description for SonicPro headphones, including:
    • Active noise cancellation (ANC)
    • 40-hour battery life
    • Foldable design
  • Disable reasoning by passing extra_body={"thinking": {"type": "disabled"}}.
  • Experiment with max_tokens and temperature to see how they affect the output.