{"record":{"id":"465e0eab70f6cc2b","repo":"microsoft/vscode","slug":"endpoint-not-found-for-model-model-id","errorCode":null,"errorMessage":"Endpoint not found for model ${model.id}","messagePattern":"Endpoint not found for model (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts","lineNumber":565,"sourceCode":"\t\t\treturn await this._automodeService.resolveAutoModeEndpoint(autoRoutingContext, allEndpoints);\n\t\t}\n\t\tconst aliasEndpoint = this._utilityAliasEndpoints.get(model.id);\n\t\tif (aliasEndpoint) {\n\t\t\treturn aliasEndpoint;\n\t\t}\n\t\treturn this._chatEndpoints.find(e => e.model === model.id);\n\t}\n\n\tprivate async _provideLanguageModelChatResponse(\n\t\tmodel: vscode.LanguageModelChatInformation,\n\t\tmessages: Array<vscode.LanguageModelChatMessage | vscode.LanguageModelChatMessage2>,\n\t\toptions: vscode.ProvideLanguageModelChatResponseOptions,\n\t\tprogress: vscode.Progress<vscode.LanguageModelResponsePart2>,\n\t\ttoken: vscode.CancellationToken\n\t): Promise<void> {\n\t\tlet endpoint = await this._getEndpointForModel(model, buildAutoRoutingContext(messages, options));\n\t\tif (!endpoint) {\n\t\t\tthrow new Error(`Endpoint not found for model ${model.id}`);\n\t\t}\n\n\t\t// Apply context size override if configured\n\t\tconst contextSize = options.modelConfiguration?.contextSize;\n\t\tif (typeof contextSize === 'number' && contextSize < endpoint.modelMaxPromptTokens) {\n\t\t\tendpoint = endpoint.cloneWithTokenOverride(contextSize);\n\t\t}\n\n\t\treturn this._lmWrapper.provideLanguageModelResponse(endpoint, messages, {\n\t\t\t...options,\n\t\t\tmodelOptions: options.modelOptions\n\t\t}, options.requestInitiator, progress, token);\n\t}\n\n\tprivate async _provideTokenCount(\n\t\tmodel: vscode.LanguageModelChatInformation,\n\t\ttext: string | vscode.LanguageModelChatMessage | vscode.LanguageModelChatMessage2,\n\t\ttoken: vscode.CancellationToken","sourceCodeStart":547,"sourceCodeEnd":583,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts#L547-L583","documentation":"Error \"Endpoint not found for model ${model.id}\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/conversation/vscode-node/languageModelAccess.ts:565 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}