* return LanguageModelChatMessageRole and the simple chat message LanguageModelChatMessage2 because all types became same, same

* deprecate the other types and prepare deletion
* move System-role into its own proposal because of API and RAI concerns
* more API notes
This commit is contained in:
Johannes
2024-05-06 11:00:17 +02:00
parent 940b65c9ab
commit 22efbdf96c
8 changed files with 140 additions and 49 deletions

View File

@@ -19,6 +19,8 @@ declare module 'vscode' {
onDidReceiveLanguageModelResponse2?: Event<{ readonly extensionId: string; readonly participant?: string; readonly tokenCount?: number }>;
provideLanguageModelResponse?(messages: LanguageModelChatMessage2[], options: { [name: string]: any }, extensionId: string, progress: Progress<ChatResponseFragment>, token: CancellationToken): Thenable<any>;
provideLanguageModelResponse2(messages: LanguageModelChatMessage[], options: { [name: string]: any }, extensionId: string, progress: Progress<ChatResponseFragment>, token: CancellationToken): Thenable<any>;
provideTokenCount(text: string | LanguageModelChatMessage, token: CancellationToken): Thenable<number>;