From cfda8867c4479cf61a251cf22deba90d7a4956cc Mon Sep 17 00:00:00 2001 From: babaohuang Date: Thu, 14 Dec 2023 16:59:13 +0800 Subject: [PATCH] Update types.ts --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 2cad3dfc..aff216de 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,10 +1,10 @@ -export interface ChatMessagePart { +export interface ChatPart { text: string; } export interface ChatMessage { role: 'model' | 'user'; - parts: ChatMessagePart[]; + parts: ChatPart[]; } export interface ErrorMessage {