mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
rename LanguageModelChatResponse#stream
to text
(#212811)
https://github.com/microsoft/vscode/issues/206265
This commit is contained in:
parent
f0676fb01a
commit
5d52fe6d54
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue