When you select a specific model, the request is always processed by that model without switching. So if you choose Claude 4 Sonnet, the response will come from that exact model.
Important: all Anthropic models are named “Claude”, and Claude 4 was trained on data that included information about Claude 3.5 Sonnet. Also, models accessed via API without a system prompt have no knowledge of themselves.
I’ve tested this multiple times, and the results are consistent.