261
return legacyTier;
262
}
263
>
// The "Context Size" picker exposes numeric token-count enum values, so a current selection arrives
copilotSessionLauncher.ts
264
>
// under `contextSize` as a token count. Map it to the SDK's two-valued tier using the model's
265
>
// long-context window: only a selection that reaches that window opts into `long_context`. Without
266
>
// the window (model exposes no picker, or the model list isn't loaded) leave the SDK on its default
267
>
// tier.
268
>
const contextSize = model?.config?.[ContextSizeConfigKey];
269
if (contextSize === undefined) {
270
// When the model's long-context tier costs the same as the default tier,