Skip to content

Commit 15d0504

Browse files
authored
fix: user content format when no images (#538)
Signed-off-by: Bob Du <i@bobdu.cc>
1 parent c01895a commit 15d0504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/src/chatgpt/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ async function getMessageById(id: string): Promise<ChatMessage | undefined> {
403403
url: string
404404
}
405405
}[] = chatInfo.prompt
406-
if (chatInfo.images) {
406+
if (chatInfo.images && chatInfo.images.length > 0) {
407407
content = [
408408
{
409409
type: 'text',

0 commit comments

Comments
 (0)