/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ declare module 'vscode' { // https://github.com/microsoft/vscode/issues/XXXXX export interface LanguageModelChatInformation { /** * Optional pricing label for this model, such as "Free", "$0.01/request", etc. * This value is meant for display purposes and will be shown in the model management UI. */ readonly pricing?: string; /** * Optional input cost in AI credits for this model. * Displayed in the model management UI as the cost per million input tokens. */ readonly inputCost?: number; /** * Optional output cost in AI credits for this model. * Displayed in the model management UI as the cost per million output tokens. */ readonly outputCost?: number; /** * Optional cache cost in AI credits for this model. * Displayed in the model management UI as the cost per million cached tokens. */ readonly cacheCost?: number; /** * Optional cache write cost in AI credits for this model. * Displayed in the model management UI as the cost per million cache-write tokens. */ readonly cacheWriteCost?: number; /** * Optional long-context input cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. * Displayed in the model picker hover as the cost per million input tokens * when the prompt exceeds the default context window. */ readonly longContextInputCost?: number; /** * Optional long-context output cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextOutputCost?: number; /** * Optional long-context cache cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextCacheCost?: number; /** * Optional long-context cache write cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextCacheWriteCost?: number; /** * Optional relative pricing category for this model (e.g. "low", "medium", "high", "very_high"). * Displayed in the model picker as a visual indicator of relative cost. */ readonly priceCategory?: string; /** * Optional model category describing the model's tier (e.g. "lightweight", "versatile", "powerful"). * Displayed in the model picker as a tag. Clients should be resilient to additional categories. */ readonly category?: string; } export interface LanguageModelChat { /** * Optional pricing label for this model, such as "Free", "$0.01/request", etc. * This value is provided by the model provider and is meant for display purposes only. */ readonly pricing?: string; /** * Optional input cost in AI credits for this model. */ readonly inputCost?: number; /** * Optional output cost in AI credits for this model. */ readonly outputCost?: number; /** * Optional cache cost in AI credits for this model. */ readonly cacheCost?: number; /** * Optional cache write cost in AI credits for this model. */ readonly cacheWriteCost?: number; /** * Optional long-context input cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextInputCost?: number; /** * Optional long-context output cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextOutputCost?: number; /** * Optional long-context cache cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextCacheCost?: number; /** * Optional long-context cache write cost in AI credits for this model. * Present only when long-context pricing differs from default pricing. */ readonly longContextCacheWriteCost?: number; /** * Optional relative pricing category for this model (e.g. "low", "medium", "high", "very_high"). * Displayed in the model picker as a visual indicator of relative cost. */ readonly priceCategory?: string; /** * Optional model category describing the model's tier (e.g. "lightweight", "versatile", "powerful"). * Displayed in the model picker as a tag. Clients should be resilient to additional categories. */ readonly category?: string; } }