microsoft/vscode · error · Error
Endpoint not found for model ${model.id}
Error message
Endpoint not found for model ${model.id} What it means
Error "Endpoint not found for model ${model.id}" thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts:565
return await this._automodeService.resolveAutoModeEndpoint(autoRoutingContext, allEndpoints);
}
const aliasEndpoint = this._utilityAliasEndpoints.get(model.id);
if (aliasEndpoint) {
return aliasEndpoint;
}
return this._chatEndpoints.find(e => e.model === model.id);
}
private async _provideLanguageModelChatResponse(
model: vscode.LanguageModelChatInformation,
messages: Array<vscode.LanguageModelChatMessage | vscode.LanguageModelChatMessage2>,
options: vscode.ProvideLanguageModelChatResponseOptions,
progress: vscode.Progress<vscode.LanguageModelResponsePart2>,
token: vscode.CancellationToken
): Promise<void> {
let endpoint = await this._getEndpointForModel(model, buildAutoRoutingContext(messages, options));
if (!endpoint) {
throw new Error(`Endpoint not found for model ${model.id}`);
}
// Apply context size override if configured
const contextSize = options.modelConfiguration?.contextSize;
if (typeof contextSize === 'number' && contextSize < endpoint.modelMaxPromptTokens) {
endpoint = endpoint.cloneWithTokenOverride(contextSize);
}
return this._lmWrapper.provideLanguageModelResponse(endpoint, messages, {
...options,
modelOptions: options.modelOptions
}, options.requestInitiator, progress, token);
}
private async _provideTokenCount(
model: vscode.LanguageModelChatInformation,
text: string | vscode.LanguageModelChatMessage | vscode.LanguageModelChatMessage2,
token: vscode.CancellationTokenView on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts:565 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/465e0eab70f6cc2b.
Report an issue: GitHub.