From 69cb101658acd57699202ee9d9fbce4750f0fe4f Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Mon, 10 Jun 2024 22:40:46 -0700 Subject: [PATCH] fix: make `LanguageModelChatMessage.stream` optional (#62) --- package-lock.json | 4 ++-- package.json | 2 +- src/base/vscodeTypes.d.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 74e7292..c7137b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vscode/prompt-tsx", - "version": "0.2.2-alpha", + "version": "0.2.3-alpha", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vscode/prompt-tsx", - "version": "0.2.2-alpha", + "version": "0.2.3-alpha", "license": "SEE LICENSE IN LICENSE", "devDependencies": { "@microsoft/tiktokenizer": "^1.0.6", diff --git a/package.json b/package.json index 0dcfa81..20206e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vscode/prompt-tsx", - "version": "0.2.2-alpha", + "version": "0.2.3-alpha", "description": "Declare LLM prompts with TSX", "main": "./dist/base/index.js", "types": "./dist/base/index.d.ts", diff --git a/src/base/vscodeTypes.d.ts b/src/base/vscodeTypes.d.ts index 741f4e8..632a7ab 100644 --- a/src/base/vscodeTypes.d.ts +++ b/src/base/vscodeTypes.d.ts @@ -387,7 +387,7 @@ export class LanguageModelChatResponseTextPart { export interface LanguageModelChatResponse { - stream: AsyncIterable; + stream?: AsyncIterable; }