1. Leren
  2. /
  3. Cursussen
  4. /
  5. Working with DeepSeek in Python

Connected

Opdracht

Specifying a DeepSeek model

OpenAI offers multiple models for different use cases. In this exercise, you'll specify the model and define the role to structure your API requests.

The OpenAI class has already been imported for you from the openai library.

Instructies

100 XP
  • Specify the deepseek-ai/DeepSeek-V4-Pro model.
  • Assign the correct role in the messages list.