mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
* 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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user