Few-shot examples via the chat API

I don’t see a way of adding few-shot examples via messages any more given the pydantic types in the python client for openai v1. It used to work by giving the system messages a ‘name’ of ‘example_user’ or ‘example_assistant’.

What is the recommended way currently (especially for gpt-4 turbo) to provide examples for the desired behavior?