When working with Bring Your Own Key (BYOK) models in Visual Studio Code’s GitHub Copilot chat, you might encounter a configuration error preventing the agent from completing your requests. This error typically presents itself as:
No utility model is configured for ‘copilot-utility-small’ while the selected main agent model is BYOK.
Understanding the “No Utility Model is Configured” Error
This issue occurs because GitHub Copilot relies on a lightweight “utility” model for various background tasks, such as generating titles for chat conversations or determining context. When you switch your primary agent to a custom BYOK model, the Copilot extension may not automatically fall back to a utility model for these secondary tasks, resulting in the error message.
How to Fix the Copilot Utility Model Error
Fortunately, resolving this configuration issue is straightforward and can be done entirely within your Visual Studio Code settings.
Follow these steps to configure the utility model:
- Navigate to File > Preferences > Settings (or press
Ctrl+,on Windows/Linux,Cmd+,on macOS). - In the settings search bar at the top, type in
byokto filter the relevant Copilot configurations. - Locate the setting for the utility model. Here, you need to assign a model to handle these background tasks. You can either select your configured BYOK model again or choose the default model provided by GitHub Copilot.
After adjusting the configuration, the error should no longer appear, allowing your BYOK model to function seamlessly within the Copilot chat interface.

