mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 23:44:09 +01:00
PR feedback
This commit is contained in:
+1
-2
@@ -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].
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user