From 37d1d04de66bdd35d45fa0961a779dcc4d4d8fd9 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 17 Jan 2024 13:10:28 +0800 Subject: [PATCH] fix: content parts --- client/ChatGLM4Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ChatGLM4Client.js b/client/ChatGLM4Client.js index b7031c55..036529ba 100644 --- a/client/ChatGLM4Client.js +++ b/client/ChatGLM4Client.js @@ -119,7 +119,7 @@ export class ChatGLM4Client extends BaseClient { onProgress(partialResponse) } } - let content = convoResponseEvent?.content[0] + let content = partialResponse?.content[0] if (content.type === 'image' && content.status === 'finish') { image = content.image[0].image_url }