You can use a custom model with GitHub Copilot modernization in Visual Studio Code when you work in a network-restricted environment.