PR feedback

This commit is contained in:
Dmitriy Vasyura
2026-06-26 16:24:29 -07:00
parent b46ab702bd
commit 79fca8aa22
2 changed files with 2 additions and 3 deletions
@@ -11,7 +11,6 @@ import { ConfigSchema, SessionModelInfo } from '../../../../../../platform/agent
import { readAgentModelPricingMeta } from '../../../../../../platform/agentHost/common/agentModelPricing.js';
import { nullExtensionDescription } from '../../../../../services/extensions/common/extensions.js';
import { ILanguageModelChatMetadataAndIdentifier, ILanguageModelChatProvider, ILanguageModelConfigurationSchema } from '../../../common/languageModels.js';
import { AGENT_HOST_AUTO_MODEL_ID } from './stateToProgressAdapter.js';
/**
* Returns whether an agent host provider exposes a synthetic "Auto" model to
@@ -66,7 +65,7 @@ export class AgentHostLanguageModelProvider extends Disposable implements ILangu
const pricing = readAgentModelPricingMeta(m);
const multiplierNumeric = pricing.multiplierNumeric;
// "Auto" advertises the auto-mode discount (detail) + description (tooltip). microsoft/vscode#321778, #321659.
const isAuto = m.id === AGENT_HOST_AUTO_MODEL_ID;
const isAuto = m.id === 'auto';
const discountPercent = pricing.discountPercent;
// Guard against a non-finite or out-of-range value from the open `_meta` bag so we never render
// nonsense like "Infinity% discount"; the documented range is a whole number in (0, 100].
@@ -167,7 +167,7 @@ export interface TurnModelLookup {
}
/** The agent host's synthetic "Auto" model id; each turn's `usage.model` reports the model it resolved to. */
export const AGENT_HOST_AUTO_MODEL_ID = 'auto';
const AGENT_HOST_AUTO_MODEL_ID = 'auto';
/** Minimal model metadata needed to render a turn's response footer (kept small for unit testing). */
export interface ITurnResponseModel {