From 839ccd84fd262c133423c36a26d1930fa4493193 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 14 Jun 2023 01:00:14 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/llms/chat.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/llms/chat.ts b/src/llms/chat.ts index 7ebb74f..251ffc6 100644 --- a/src/llms/chat.ts +++ b/src/llms/chat.ts @@ -223,7 +223,8 @@ export abstract class BaseChatModel< 1 ).replaceAll(/\n ?/gm, ' ') - messages.push(completion.message) + // TODO: remove `any` cast once openai-fetch is updated + messages.push(completion.message as any) messages.push({ role: 'function', name: functionCall.name,