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

Connected

Exercise

Utilizing systems messages

Chat models support three different chat message roles:

  • System: controls assistant's behavior
  • User: instruct the assistant
  • Assistant: response to user instruction

In this exercise, you'll begin to design an AI system for helping people learn new skills, using a system message to set an appropriate model behavior.

Instructions

100 XP
  • Create a request using both system and user messages to create a study plan to learn to speak Dutch.
  • Extract and print the assistant's text response.