Skip to content

Commit

Permalink
fix: first msg no content
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Jan 17, 2024
1 parent 37d1d04 commit 006abb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/ChatGLM4Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ChatGLM4Client extends BaseClient {
}
}
let content = partialResponse?.content[0]
if (content.type === 'image' && content.status === 'finish') {
if (content?.type === 'image' && content?.status === 'finish') {
image = content.image[0].image_url
}
if (convoResponseEvent.status === 'finish') {
Expand Down

0 comments on commit 006abb3

Please sign in to comment.