rename LanguageModelChatResponse#stream to text (#212811)

https://github.com/microsoft/vscode/issues/206265
This commit is contained in:
Johannes Rieken 2024-05-15 15:11:38 +02:00 committed by GitHub
parent f0676fb01a
commit 5d52fe6d54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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
};
}

View file

@ -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>;
}
/**