Skip to content

Commit

Permalink
rename LanguageModelChatResponse#stream to text
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 15, 2024
1 parent d0acead commit 048969c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/common/extHostLanguageModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class LanguageModelResponse {
const that = this;
this.apiObject = {
// result: promise,
stream: that._defaultStream.asyncIterable,
text: that._defaultStream.asyncIterable,
// streams: AsyncIterable<string>[] // FUTURE responses per N
};
}
Expand Down
3 changes: 1 addition & 2 deletions src/vscode-dts/vscode.proposed.languageModels.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ declare module 'vscode' {
* To cancel the stream, the consumer can {@link CancellationTokenSource.cancel cancel} the token that was used to make the request
* or break from the for-loop.
*/
// TODO@API rename: text
stream: AsyncIterable<string>;
text: AsyncIterable<string>;
}

/**
Expand Down

0 comments on commit 048969c

Please sign in to comment.