Skip to content

Commit

Permalink
chore: Remove deprecated tokens property from vscode.proposed.chatPro…
Browse files Browse the repository at this point in the history
…vider.d.ts (microsoft#213301)

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

* fix compiler
  • Loading branch information
jrieken authored and andremmsilva committed May 26, 2024
1 parent ff3905d commit 24cfcf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/api/common/extHostLanguageModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down
5 changes: 0 additions & 5 deletions src/vscode-dts/vscode.proposed.chatProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 24cfcf4

Please sign in to comment.