Choose model in Copilot provider using Util.AI.Ask
Using Util.AI.Ask I can select a specific model:
var model = AIModel.FindByID("gpt-4.1-mini") ?? AIModel.DefaultChatModel;
var aiOptions = new AIRequestOptions
{
Model = model,
BypassCache = true,
MaxTokens = 150,
SystemPrompt = "You are a concise technical summariser."
};
var response = await Util.AI.Ask("Some prompt", aiOptions)
.GetResponseAsync(ScriptCancelToken);
string summary = response.Text.Trim();
This great, but is there a way to specify GitHub Copilot as a provider and then pick one of the models from there?
I see that I can select the right provider, with this:
var copilotProvider = AIProvider.All.FirstOrDefault(p => p.ID == "Copilot"); copilotProvider.Models.Dump();
but the output only reports a single 'not connected' model - is there a way around this?

