ComeçarComece de graça

Your first DeepSeek request!

To preview what's ahead, the Python code for sending a request to a DeepSeek model is ready for you.

Pass any question or instruction to the content argument and see how DeepSeek responds!


Here are two prompts to try if you're struggling for ideas:

  • In one sentence, how did DeepSeek revolutionize LLMs?
  • In one sentence, how can DeepSeek be used to upskill myself?

Este exercício faz parte do curso

Working with DeepSeek in Python

Ver curso

Instruções do exercício

  • Enter your prompt replacing INSERT YOUR PROMPT HERE, experiment, and submit your answer when ready!

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V3",
    max_tokens=50,
  
    # Enter your prompt
    messages=[{"role": "user", "content": "INSERT YOUR PROMPT HERE"}]
)

print(response.choices[0].message.content)
Editar e executar o código