All Lessons

A developer adds {"role": "system", "content": "You are a pirate"} as the first item in the messages array and is surprised the API rejects it. How should a system prompt be supplied in the Messages API?

1 / 3
beginner 25 min

System Prompts & Messages

Loading lesson content...