chore: Remove deprecated tokens property from vscode.proposed.chatProvider.d.ts (#213301)

* chore: Remove deprecated tokens property from vscode.proposed.chatProvider.d.ts

* fix compiler
This commit is contained in:
Johannes Rieken 2024-05-23 11:25:38 +02:00 committed by GitHub
parent d42d42e5b0
commit 2d174613d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View File

@ -159,8 +159,8 @@ export class ExtHostLanguageModels implements ExtHostLanguageModelsShape {
name: metadata.name ?? '',
family: metadata.family ?? '',
version: metadata.version,
maxInputTokens: metadata.maxInputTokens ?? metadata.tokens,
maxOutputTokens: metadata.maxOutputTokens ?? metadata.tokens,
maxInputTokens: metadata.maxInputTokens,
maxOutputTokens: metadata.maxOutputTokens,
auth,
targetExtensions: metadata.extensions
});

View File

@ -48,11 +48,6 @@ declare module 'vscode' {
readonly maxOutputTokens: number;
/**
* @deprecated
*/
tokens: number;
/**
* When present, this gates the use of `requestLanguageModelAccess` behind an authorization flow where
* the user must approve of another extension accessing the models contributed by this extension.