languageModels.ts ×5

Frontier kind: Code frontier

unlabeled · c_96626d5f8317

8 tests · 32358 LOC · 158 files · introduces 0 tests · 27 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges27 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3307 ranges32358 lines · 158 files · Browse complete extent
All tests (intent)
8 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 27 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/common/languageModels.ts 27 introduced LOC · 5 ranges

Open complete file

390 */
391 export function getAgentHostByokManageModelsIdentifier(metadata: ILanguageModelChatMetadata): string | undefined {
392 > return metadata.byokModelIdentifier; languageModels.ts
393 > }
394 }
395
2280
2281 private _getGroupNameForVendor(vendor: string): string {
2282 > return this._vendors.get(vendor)?.displayName ?? vendor; languageModels.ts
2283 > }
2284
2285 private _getModelIdsInGroup(vendor: string, groupName: string): string[] {
2286 > const vendorGroups = this._modelsGroups.get(vendor); languageModels.ts
2287 > if (!vendorGroups) {
2288 return [];
2289 }
2290 > const result: string[] = []; languageModels.ts
2291 > const fallbackName = this._getGroupNameForVendor(vendor);
2292 > for (const g of vendorGroups) {
2293 > const name = g.group?.name ?? fallbackName;
2294 > if (name === groupName) {
2295 > for (const id of g.modelIdentifiers) {
2296 > // Exclude agent-host BYOK copies. They are not shown as rows in this
2297 > // group (they surface under their real provider), so group-level
2298 > // visibility toggles (`isGroupHidden` / `setGroupHidden`) must not
2299 > // touch them — otherwise hiding the agent-host group would flip the
2300 > // hidden state of these copies in the underlying model set even though
2301 > // the UI never lists them here. Their visibility is owned by the real
2302 > // provider row and honoured in the picker via the reconstructed id.
2303 > const metadata = this._modelCache.get(id);
2304 > if (metadata && ILanguageModelChatMetadata.getAgentHostByokManageModelsIdentifier(metadata) !== undefined) {
2305 continue;
2306 }
2307 > result.push(id); languageModels.ts
2308 > }
2309 > }
2310 > }
2311 > return result;
2312 > }
2313
2314 private _readVisibility(): void {